Skip to content

Commit

Permalink
IPVGO: minor unrelated bugfix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ficocelliguy committed Mar 5, 2025
1 parent 3a7b02e commit 869f645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Go/boardAnalysis/goAI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 869f645

Please sign in to comment.