IPVGO: correctly initialize board from save when there are no prior moves (#1995)

This commit is contained in:
Michael Ficocelli
2025-03-06 14:30:12 -05:00
committed by GitHub
parent 6530b43886
commit a611c842e2
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -403,7 +403,9 @@ async function getIlluminatiPriorityMove(moves: MoveOptions, rng: number): Promi
return moves.corner()?.point ?? null;
}
const hasMoves = [moves.eyeMove(), moves.eyeBlock(), moves.growth(), moves.defend, surround].filter((m) => m).length;
const hasMoves = [moves.eyeMove(), moves.eyeBlock(), moves.growth(), moves.defend(), surround].filter(
(m) => m,
).length;
const usePattern = rng > 0.25 || !hasMoves;
if ((await moves.pattern()) && usePattern) {