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

@@ -17,6 +17,7 @@ import {
getCurrentPlayer,
getGameState,
getLiberties,
getMoveHistory,
getOpponentNextMove,
getStats,
getValidMoves,
@@ -58,6 +59,9 @@ export function NetscriptGo(): InternalAPI<NSGo> {
getBoardState: () => () => {
return simpleBoardFromBoard(Go.currentGame.board);
},
getMoveHistory: () => () => {
return getMoveHistory();
},
getCurrentPlayer: () => () => {
return getCurrentPlayer();
},