Solving Reversi game tree with Minimax algorithm and Alpha-beta pruning algorithm using various heuristics.
Heuristic used in the project are:
- coin parity - advantage in disks over an enemy
- corner owned - advantage in claiming corners
- corner closeness - advantage in claiming positions near corners
- current mobility - advantage in available moves
- potential mobility - advantage in free positions near enemy disks
- weights - weights table made by korman
- korman - korman heuristic but without stability
- adapt - trained by genetic algorithm heuristic build with first 5 heuristics
- V 0.3.3
The program may not work properly with newer versions, as there were breaking changes in 0.4
In root directory run:
v run .
It will build and run project extremely fast, but without any optimizations, so it will run painfully slow (still faster than python solutions 馃槑).
For well optimize build run in root directory:
v -prod .
This command will produce executable file, then just run this file with:
./Project2.exe
./Project2.exe --help