simplify FutureMoves::rebuild_from_board

This commit is contained in:
2025-04-03 14:12:50 -04:00
parent a3b75d633f
commit eab35de50a

View File

@@ -389,9 +389,7 @@ impl FutureMoves {
} }
fn rebuild_from_board(&mut self, board: Board) { fn rebuild_from_board(&mut self, board: Board) {
self.arena.clear(); self.arena = vec![Move::new(None, board, !self.agent_color, self.agent_color)];
self.arena
.push(Move::new(None, board, !self.agent_color, self.agent_color));
self.current_root = Some(0); self.current_root = Some(0);
self.current_depth = 0; self.current_depth = 0;
self.board = board; self.board = board;