Rough game on windows implented by Easyx library.
mkdir build && cd build
cmake .. -G "Unix Makefiles"
make
./bin/gobang.exe
-
The algorithem to calculate the position weight of AI.
Located in ./src/AI.cpp : void AI::calculateScore(){...} -
The algoritem to check win conditions in the direction of backslash "\" & forwar slash "/".
located in ./src/chess.cpp : bool Chess::checkWin (){...} -
Only input 'q' on terminal could exit game.