add FutureMoves::set_parent_child
This commit is contained in:
@@ -40,20 +40,13 @@ lazy_static! {
|
||||
}
|
||||
|
||||
impl Move {
|
||||
pub fn new(
|
||||
i: usize,
|
||||
j: usize,
|
||||
board: Board,
|
||||
color: Piece,
|
||||
agent_color: Piece,
|
||||
parent: Option<usize>,
|
||||
) -> Self {
|
||||
pub fn new(i: usize, j: usize, board: Board, color: Piece, agent_color: Piece) -> Self {
|
||||
let mut m = Move {
|
||||
i,
|
||||
j,
|
||||
board,
|
||||
winner: board.game_winner(),
|
||||
parent,
|
||||
parent: None,
|
||||
children: Vec::new(),
|
||||
value: None,
|
||||
color,
|
||||
|
||||
Reference in New Issue
Block a user