mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 02:32:55 +02:00
IPVGO: Add new analysis method to set a custom testing board state (#2029)
This commit is contained in:
committed by
GitHub
parent
de8c8691c2
commit
17ffabdfa5
@@ -17,7 +17,7 @@ import { Go, GoEvents } from "../Go";
|
||||
* fully surrounded by their pieces
|
||||
*/
|
||||
export function getScore(boardState: BoardState) {
|
||||
const komi = getKomi(boardState.ai) ?? 6.5;
|
||||
const komi = getKomi(boardState) ?? 6.5;
|
||||
const whitePieces = getColoredPieceCount(boardState, GoColor.white);
|
||||
const blackPieces = getColoredPieceCount(boardState, GoColor.black);
|
||||
const territoryScores = getTerritoryScores(boardState.board);
|
||||
|
||||
Reference in New Issue
Block a user