Files
bitburner-src/markdown/bitburner.goanalysis.settestingboardstate.md

1.3 KiB

Home > bitburner > GoAnalysis > setTestingBoardState

GoAnalysis.setTestingBoardState() method

Starts a new game against the "No AI" opponent, and sets the initial board size, pieces, and offline nodes to the given board state. "X" represent black pieces, "O" white, and "." empty points. "#" are dead nodes that are not part of the subnet.

Signature:

setTestingBoardState(boardState: string[], komi?: number, nextPlayerIsWhite?: boolean): void;

Parameters

Parameter

Type

Description

boardState

string[]

The initial board state to use for the new game, in the format used by getBoardState().

komi

number

(Optional) Optional komi value to set for the game. Defaults to 5.5.

nextPlayerIsWhite

boolean

(Optional) Optional. Whether or not the next player to play is the white player. Defaults to false.

Returns:

void

Remarks

RAM cost: 4 GB