Classical connect game on a general board


Connect 4 on a General Board

You can try out the classical connect-4 game at:

https://www.mathisfun.com/games/connect4.html.

While the classical connect-4 game is played on a 67 board, it can in fact be played in any nrRowsnrCols board. In your implementation, the user will specify the number of rows nrRows and the number of columns nrCols. A win is obtained if a player has four consecutive pieces in a row, column, or diagonal.

Your program should implement the game for two human players. Extra credit, up to 20 points, will be given for the design of the graphical interface. You could enhance your graphics by using sounds as well.

For additional extra credit, up to 30 points, you could implement a computer-playing strategy. Extra credit points will be given based on the strength of the computer play.

Alternative Projects

As an alternative to connect-4, you could implement:

  • Sokoban, see https://www.game-sokoban.com/, https://en.wikipedia.org/wiki/Sokoban
  • Breakout, see https://www.play.vg/games/10-Breakout.html
  • Nine Men's Morris, see https://en.wikipedia.org/wiki/Nine Men's Morris
  • Mini-chess, see en.wikipedia.org/wiki/Minichess, the Gardner variant.
  • Backgammon, see https://en.wikipedia.org/wiki/Backgammon

In addition to the interface, the ability of the computer to play the game will be taken into consideration. There will be up to 20 points of extra credits for the graphical design and up to 30 points of extra credit for the strength of the computer play.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Classical connect game on a general board
Reference No:- TGS0257

Expected delivery within 24 Hours