Board: use place for random board not place_unchecked
This commit is contained in:
parent
0c832b1c7b
commit
a0cd9edc32
@ -172,7 +172,7 @@ impl Board {
|
||||
let mut rng = rand::rng();
|
||||
for _ in 0..steps {
|
||||
if let Some(m) = new.possible_moves(p).choose(&mut rng) {
|
||||
new.place_unchecked(m, p);
|
||||
let _ = new.place(m, p);
|
||||
}
|
||||
|
||||
p = !p;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user