Question: Write code to play connect four. - 6 x 7 grid for the game (2D array is recommended) - Player vs Computer - Computer should
Write code to play connect four.
- 6 x 7 grid for the game (2D array is recommended)
- Player vs Computer
- Computer should be a basic AI
- should react to the player when the player is about to win (i.e. blocking a player from winning)
- should attempt to win when they are close to winning
- otherwise randomly chooses where to play
- Prompts the user to play again when the game is over
- The game should account for wins, loses, and ties.
- Keeps track of how many rounds the player has won, lost, and tied.
- Create at least two classes.
- Documentation still applies. (i.e. JavaDocs, inline comments, conventions, etc.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
