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

@@ -22,7 +22,7 @@ pub fn run() {
},
);
let mut board = Board::new().starting_pos();
let mut board = Board::STARTING_POSITION;
let mut rng = rand::rng();
let mut i = 0;
while board.game_winner() == Winner::None && i < 2 {