- Qi Hu Email: [email protected]
- This is a small game called Gobang. You can play this game with the computer (a 'clever' agent with very basic AI).
- The rule of the game is as follow: you and the computer will put a piece of chess in turns on any reasonable(empty) position. Whoever get a line of five pieces of chess first will win the game.
Maximal-Minimal Algorithm with Alpha-Beta Pruning
- Run the main.cpp file in the command line, and there will be an simple UI (No graphical UI, just command line).
- Then just follow the instructions and have fun!
- head.h: Head File to define some important variables
- main.cpp: The main function. To call the sub-function for the game.
- subfunction.cpp: Implement the algorithm for the game, including game status checking and computer AI (Max-Min algorithm with Alpha-Beta pruning)