Connect 4 is a two-player game in which the players take turns dropping their colored discs from the top into a grid. The pieces fall straight down, occupying the next available space within the column.
The objective of the game is to connect-four of one’s own discs of the same color next to each other vertically, horizontally, or diagonally.
The two players keep playing until the board is full. The winner is the player having greater number of connected-fours.
- The game supports only one mode human vs. computer.
- You can choose either to use minimax without alpha-beta pruning or minimax with alpha-beta pruning.
- You can choose the search depth limit (the default depth is 4).