Question: In java please create a 2 player connect four game using inputMismatch (when something other than an integer is unputted) and arrayIndexOutOfBound Exceptions (when something

 In java please create a 2 player connect four game using

inputMismatch (when something other than an integer is unputted) and arrayIndexOutOfBound Exceptions

In java please create a 2 player connect four game using inputMismatch (when something other than an integer is unputted) and arrayIndexOutOfBound Exceptions (when something other than 0-6 is inputted by user, with a game board being displayed to the console.

Connect Four is a two-player board game in which the players alternately drop colored disks into seven-column, six-row vertically suspended grid as shown below: before your opponent can do likewise. The program prompts two players to drop a red or yellow disks alternately. Whenever a disk is dropped, the program redisplays the board on the console and determines the status of the game (win, draw, or continue). Here is a sample run: Drop a red disk at column (0 -6):0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!