IPVGO: Provide API for getting game stats per opponent (#1255)

Give users access to wins, losses, stat bonuses, and favor gained
This commit is contained in:
Michael Ficocelli
2024-05-10 04:57:03 -04:00
committed by GitHub
parent 35c32e2871
commit b53c35126e
9 changed files with 100 additions and 3 deletions

View File

@@ -18,6 +18,7 @@ import {
getGameState,
getLiberties,
getOpponentNextMove,
getStats,
getValidMoves,
handlePassTurn,
makePlayerMove,
@@ -85,6 +86,9 @@ export function NetscriptGo(): InternalAPI<NSGo> {
getControlledEmptyNodes: () => () => {
return getControlledEmptyNodes();
},
getStats: () => () => {
return getStats();
},
},
cheat: {
getCheatSuccessChance: (ctx: NetscriptContext) => () => {