fixes
This commit is contained in:
parent
ec89afcb7e
commit
48c0bad191
1 changed files with 3 additions and 3 deletions
|
@ -228,14 +228,14 @@ void bt_t::mcts_expansion(bt_node_t *root) {
|
|||
// Add child to root
|
||||
root->children.push_back(tmp);
|
||||
}
|
||||
|
||||
// Avoid re-add same moves
|
||||
nb_moves = 0;
|
||||
}
|
||||
|
||||
bool bt_t::mcts_simulation(bt_node_t *node) {
|
||||
int me = (turn % 2 == 0) ? WHITE : BLACK;
|
||||
|
||||
// try to play my move
|
||||
play(node->move);
|
||||
|
||||
// then play randomly 'til the game is over
|
||||
while (endgame() != EMPTY) {
|
||||
play(get_rand_move());
|
||||
|
|
Reference in a new issue