IPVGO: Add history, and details to status, to go API (#1348)

This commit is contained in:
Michael Ficocelli
2024-06-05 21:24:48 -04:00
committed by GitHub
parent 30a6419b11
commit cf48d666f5
6 changed files with 44 additions and 2 deletions

View File

@@ -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;
};
/**