mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
IPVGO: Add history, and details to status, to go API (#1348)
This commit is contained in:
committed by
GitHub
parent
30a6419b11
commit
cf48d666f5
17
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
17
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -4049,6 +4049,21 @@ export interface Go {
|
||||
*/
|
||||
getBoardState(): string[];
|
||||
|
||||
/**
|
||||
* Returns all the prior moves in the current game, as an array of simple board states.
|
||||
*
|
||||
* For example, a single 5x5 prior move board might look like this:
|
||||
*
|
||||
* [<br/>
|
||||
* "XX.O.",<br/>
|
||||
* "X..OO",<br/>
|
||||
* ".XO..",<br/>
|
||||
* "XXO.#",<br/>
|
||||
* ".XO.#",<br/>
|
||||
* ]
|
||||
*/
|
||||
getMoveHistory(): string[][];
|
||||
|
||||
/**
|
||||
* Returns the color of the current player, or 'None' if the game is over.
|
||||
* @returns "White" | "Black" | "None"
|
||||
@@ -4065,6 +4080,8 @@ export interface Go {
|
||||
whiteScore: number;
|
||||
blackScore: number;
|
||||
previousMove: [number, number] | null;
|
||||
komi: number;
|
||||
bonusCycles: number;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user