Skip to content
Snippets Groups Projects
Commit ccaaeb00 authored by Bariatti Francesco's avatar Bariatti Francesco
Browse files

Pascal fix: The mcts now is reset after every move. It works!

parent 249a51d3
No related branches found
No related tags found
No related merge requests found
...@@ -59,8 +59,9 @@ namespace game ...@@ -59,8 +59,9 @@ namespace game
cout << mor << endl; cout << mor << endl;
if(mor.current_player() == 1) //It's circle turn (computer is circle) if(mor.current_player() == 1) //It's circle turn (computer is circle)
{ {
mctsPlayer.reset();
uint16_t move = mctsPlayer.select_move(); uint16_t move = mctsPlayer.select_move();
//cout << "Computer played " << mor.move_to_string(move) << endl; cout << "Computer played move number " << move << endl;
mor.play(move); mor.play(move);
} }
else //Human turn to play else //Human turn to play
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment