- suivre le guide d'installation dans open_spiel/readme.md
- suivre le guide d'installation dans open_spiel/open_spiel/algorithm/alpha_zero_toarch/readme.md
dans le répertoire open_spiel,
cd build; make -j$(nproc); cd ..
dans le répertoire open_spiel,
./build/examples/alpha_zero_torch_example --game=tic_tac_toe --path=. --nn_depth=2 --nn_width=8 --checkpoint_freq=1
dans le répertoire open_spiel,
./build/examples/alpha_zero_torch_game_example --game=tic_tac_toe --player1=az --player2=human --az_path=. --az_checkpoint=0
où l'argument player2=[...] permet de choisir entre nous (human), mcts ou az (alpha_zero)
Dans tic_tac_toe.h, on peut modifier :
- inline constexpr int kNumRows = 6;
- inline constexpr int kNumCols = 6;
- inline constexpr int kSizeLine = 4;