/TicTacToe-MCTS

Primary LanguageC++MIT LicenseMIT

TicTacToe-MCTS

TicTacToe-MCTS is a C++ bot for playing TicTacToe, using Monte Carlo Tree Search.

Compilation

./compile.sh #It uses O2 optimization for better performance.

Running the bot

./run.sh #You will be asked if you want to play first or second.

Input

When it's your turn, the input type is "i j", where (i, j) is the coordinate of place you want to play your move in a 3X3 board.

Note: 0 <= i, j < 3

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.