From 42ca32f457acdbf42b8de5bea0c3e53ad0702254 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Tue, 11 Apr 2023 15:20:19 +0200 Subject: [PATCH] create var --- TP2/src/mybt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TP2/src/mybt.cpp b/TP2/src/mybt.cpp index f7f859e..9ccb9f8 100644 --- a/TP2/src/mybt.cpp +++ b/TP2/src/mybt.cpp @@ -246,7 +246,8 @@ bool bt_t::mcts_simulation(void) { // then play randomly 'til the game is over while (endgame() == EMPTY) { - play(get_rand_move()); + bt_move_t m = get_rand_move(); + play(m); } // if i won