mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 03:00:56 +02:00
IPVGO: Add optional board state argument to the go analysis functions (#1716)
This commit is contained in:
committed by
GitHub
parent
ecc2d92edb
commit
6df3dcdc82
@@ -645,6 +645,16 @@ export function boardFromSimpleBoard(simpleBoard: SimpleBoard): Board {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a Board object from the given simpleBoard string array
|
||||
* Also updates the board object with the analytics (liberties/chains) from the simple board
|
||||
*/
|
||||
export const updatedBoardFromSimpleBoard = (simpleBoard: SimpleBoard): Board => {
|
||||
const board = boardFromSimpleBoard(simpleBoard);
|
||||
updateChains(board);
|
||||
return board;
|
||||
};
|
||||
|
||||
export function boardStateFromSimpleBoard(
|
||||
simpleBoard: SimpleBoard,
|
||||
ai = GoOpponent.Daedalus,
|
||||
|
||||
Reference in New Issue
Block a user