Board: make starting_pos a const variable instead
This commit is contained in:
@@ -629,7 +629,7 @@ mod tests {
|
||||
let mut futm = FutureMoves::new(Piece::Black, FUTURE_MOVES_CONFIG);
|
||||
futm.config.max_depth = 1;
|
||||
|
||||
futm.update_from_board(&Board::new().starting_pos());
|
||||
futm.update_from_board(&Board::STARTING_POSITION);
|
||||
|
||||
futm.extend_layers();
|
||||
assert_eq!(futm.arena_len(), 5);
|
||||
@@ -710,7 +710,7 @@ mod tests {
|
||||
#[test]
|
||||
fn skip_move_recovery() {
|
||||
let mut futm = FutureMoves::new(Piece::Black, FUTURE_MOVES_CONFIG);
|
||||
let mut board = Board::new().starting_pos();
|
||||
let mut board = Board::STARTING_POSITION;
|
||||
|
||||
// replay of a test I did
|
||||
// TODO! make this as small of a test as possible
|
||||
@@ -774,8 +774,8 @@ mod tests {
|
||||
fn derive_board() {
|
||||
let mut futm = FutureMoves::new(Piece::White, FUTURE_MOVES_CONFIG);
|
||||
|
||||
let mut b = Board::new().starting_pos();
|
||||
futm.update_from_board(&Board::new().starting_pos());
|
||||
let mut b = Board::STARTING_POSITION;
|
||||
futm.update_from_board(&b);
|
||||
|
||||
b.place((4, 2).into(), Piece::White).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user