diff --git a/TP2/src/mybt.cpp b/TP2/src/mybt.cpp index d682621..d6bbe9a 100644 --- a/TP2/src/mybt.cpp +++ b/TP2/src/mybt.cpp @@ -217,6 +217,13 @@ bt_node_t *bt_t::mcts_selection(bt_node_t *node) { void bt_t::mcts_expansion(bt_node_t *root) { update_moves(); + // Play the move + if (can_play(root->move)) { + play(root->move); + } else { + fprintf(stderr, "?????"); + } + for (int i = 0; i < nb_moves; i++) { // Child bt_node_t *tmp = new bt_node_t;