This Repository build a Surakarta Game framework and implement MCTS (Monte Carlo Tree Search) technique to train AI. In the future, we will combine MCTS with Deep Q-Learning or other appropriate RL, ML, DRL technique.
Important: You should install C++ libtorch libaray first
- git clone this Repository
cd SurakartaAI
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=/path/to/yourlibtorch ..
cmake --build .
./surakarta (--total=1000 --block=100 (default argument))
- By deault, The two agent player and envir move according to two different strategy, MCTS and Eat First Greedy.
- Modify
agent.h
and choose the strategy you want inpolicy.h