IPVGO: Add support to netscript API for game state, current player, and alternate ways to check/wait on AI turn (#1142)

This commit is contained in:
Michael Ficocelli
2024-03-19 14:07:15 -04:00
committed by GitHub
parent 6aaeb6b59e
commit d81358c80f
22 changed files with 541 additions and 308 deletions
+4 -4
View File
@@ -96,14 +96,14 @@ function handleNoMoveFound(boardState: BoardState, player: GoColor) {
if (remainingTerritory > 0 && boardState.passCount < 2) {
return {
type: GoPlayType.pass,
x: -1,
y: -1,
x: null,
y: null,
};
} else {
return {
type: GoPlayType.gameOver,
x: -1,
y: -1,
x: null,
y: null,
};
}
}