mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
867 B
867 B
Home > bitburner > Go > getGameState
Go.getGameState() method
Gets the status of the current game. Shows the current player, current score, and the previous move coordinates. Previous move coordinates will be [-1, -1] for a pass, or if there are no prior moves.
Signature:
getGameState(): {
currentPlayer: "White" | "Black" | "None";
whiteScore: number;
blackScore: number;
previousMove: [number, number] | null;
komi: number;
bonusCycles: number;
};
Returns:
{ currentPlayer: "White" | "Black" | "None"; whiteScore: number; blackScore: number; previousMove: [number, number] | null; komi: number; bonusCycles: number; }