Board: make starting_pos a const variable instead

This commit is contained in:
2025-04-01 15:49:18 -04:00
parent 672a523fd1
commit 30476757da
5 changed files with 18 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ fn extend_layers_no_pruning(depth: usize) -> usize {
children_eval_method: ChildrenEvalMethod::AverageDivDepth,
};
let mut fut = FutureMoves::new(Piece::Black, config);
fut.update_from_board(&Board::new().starting_pos());
fut.update_from_board(&Board::STARTING_POSITION);
fut.extend_layers();
fut.arena_len()
}