| ||||||||||||||
| ||||||||||||||
|
||||||||||||||
|
Connect4 is a simple game that requires little more than iterations to make the computer a very difficult opponent. Actually, it is probably possible to create an opponent that will always beat the player (assuming it starts first).
OutlineThe rules of Connect4 are really simple. The game is a turned-based two player game, the winner is the first person to connect4 stones together. The version that I've played requires that the pieces "build" on top of each other (see diagram). The game can be played on a arbitarily sized board, but the smaller the harder - normally a 6x6 board is used.
GuidelinesIf you have not read the Simple Board Game AI essay, do so. Connect4 AI will merely consist of iterations, and a priority board. Since it is only really numbers (how many in a row) that you need to care about, the heuristics are simple:
Solutions
Last Updated: 27/10/2002 Article content copyright © James Matthews, 2002.
|
|
|||||||||||||
All content copyright © 1998-2007, Generation5 unless otherwise noted.
- Privacy Policy - Legal - Terms of Use -