Question: Using C++ create an AI program that can play Connect Four. Connect Four is a two-player game in which the two players take turns dropping
Using C++ create an AI program that can play Connect Four. Connect Four is a two-player game in which the two players take turns dropping colored discs from the top into a 7-column, 6-row vertically suspended grid. The pieces fall straight down, occupying the next available space within the column. The object of the game is to connect four of one's own discs (of the same color) next to each other vertically, horizontally, or diagonally before your opponent does.
Tasks:
1. Implement a connect-four game playing interface that one can play the game.
2. Design an evaluation function for the intermediate states.
3. Implement program using the minimax algorithm.
4. Enhance program using alpha-beta pruning algorithm.
5. Can MAX find a strategy that guarantees winning?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
