IPVGO: Fix scoring of very large open areas (#2464)

This commit is contained in:
Michael Ficocelli
2026-02-03 07:52:40 -05:00
committed by GitHub
parent 00339a206c
commit ba1c6f3818
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -116,10 +116,10 @@ export function evaluateMoveResult(board: Board, x: number, y: number, player: G
export function getControlledSpace(board: Board) {
const chains = getAllChains(board);
const length = board[0].length;
const whiteControlledEmptyNodes = getAllPotentialEyes(board, chains, GoColor.white, length * 2)
const whiteControlledEmptyNodes = getAllPotentialEyes(board, chains, GoColor.white, 99)
.map((eye) => eye.chain)
.flat();
const blackControlledEmptyNodes = getAllPotentialEyes(board, chains, GoColor.black, length * 2)
const blackControlledEmptyNodes = getAllPotentialEyes(board, chains, GoColor.black, 99)
.map((eye) => eye.chain)
.flat();