Board: use place for random board not place_unchecked

This commit is contained in:
Simon Gardling 2025-03-11 14:39:44 -04:00
parent 0c832b1c7b
commit a0cd9edc32
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D

View File

@ -172,7 +172,7 @@ impl Board {
let mut rng = rand::rng(); let mut rng = rand::rng();
for _ in 0..steps { for _ in 0..steps {
if let Some(m) = new.possible_moves(p).choose(&mut rng) { if let Some(m) = new.possible_moves(p).choose(&mut rng) {
new.place_unchecked(m, p); let _ = new.place(m, p);
} }
p = !p; p = !p;