use Move::new in FutureMoves::create_root_raw
This commit is contained in:
parent
aad3ea0c0a
commit
a2f302b4b0
@ -248,18 +248,15 @@ impl FutureMoves {
|
|||||||
|
|
||||||
pub fn create_root_raw(&mut self, board: Board) {
|
pub fn create_root_raw(&mut self, board: Board) {
|
||||||
self.arena.clear();
|
self.arena.clear();
|
||||||
self.arena.push(Move {
|
self.arena.push(Move::new(
|
||||||
i: 0,
|
0,
|
||||||
j: 0,
|
0,
|
||||||
board,
|
board,
|
||||||
winner: board.game_winner(),
|
!self.agent_color,
|
||||||
parent: None,
|
false,
|
||||||
children: Vec::new(),
|
self.agent_color,
|
||||||
value: 0,
|
None,
|
||||||
color: !self.agent_color,
|
));
|
||||||
lazy_children: false,
|
|
||||||
self_value: 0,
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Update the root based on the coordinate of the move
|
/// Update the root based on the coordinate of the move
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user