automctsPlayer=mcts::make_mcts_two_players(mor,5000,0.3,4);// creation du player a partir du morpion. 5000: ms de reflexion 0.3 fateur d'exploration 4: nb_visit_before_expansion on attend d'etre arrive 4 fois sur un noeud avant de le developper
cout<<"Player vs Computer game!"<<endl;
cout<<"Who's first? (Player)"<<endl;
while(!mor.end_of_game())
...
...
@@ -60,7 +60,8 @@ namespace game
if(mor.current_player()==1)//It's circle turn (computer is circle)
{
uint16_tmove=mctsPlayer.select_move();
cout<<"Computer wants to play "<<mor.move_to_string(move);
//cout << "Computer played " << mor.move_to_string(move) << endl;
mor.play(move);
}
else//Human turn to play
{
...
...
@@ -72,7 +73,7 @@ namespace game
{
uint16_tmove=possible_moves&((uint64_t)15);//15 = 1111 (a move is on 4 bits)