Checkers game with bot AI using Minimax algorithm with Alpha-Beta pruning.
Created in Unity and C# by Oskar Hącel & Marcin Lisowski
Politechnika Warszawska, 04.2021
- Download release package
EARIN_EX4_CHECKERS.zip
or build project yourself - Unzip
.zip
file with Windows extracting tool,7Zip
or similar - Run
EARIN_EX4_CHECKERS.exe
to play the game
- Download
Unity 2020.3.0f1 (64-bit)
game engine. Make sure to installUnity Hub
as well.Visual Studio 2019
highly recommended. - Inside Unity Hub, in
Projects
tab, pressAdd
button, and select main folder of the source code (containing e.g..gitignore
file) - Press play button to play the game inside the Editor or use
Ctrl + b
to build and play in standalone application
- Press
play
button - Using slider, choose desired
depth
parameter. It describes the depth parameter of Minimax algorithm using which AI bot operates (higher value = harder bot to beat) - Press the
play
button again - Player always plays with pawns located on the lower part of the checkerboard
- Game can be restarted inside
escape menu
that appears whenEscape
button is pressed. One can also go back toMain menu
- Player make moves by selecting available desired pawn and then selecting available desired position
- If pawn cannot be selected it means that player cannot make move with given pawn or AI bot still makes his move
- Player is notified when he or the bot wins by
end game
screen. End game screen allows to restart the game or to quit toMain Menu