[IPvGO] Docs improvements and other feedback (#1011)

This commit is contained in:
Michael Ficocelli
2024-01-05 20:50:28 -05:00
committed by GitHub
parent 0da9d9d3c0
commit 7e721c144e
6 changed files with 33 additions and 9 deletions

View File

@@ -41,6 +41,11 @@ export async function makePlayerMove(logger: (s: string) => void, x: number, y:
if (validity !== validityReason.valid || !result) {
await sleep(500);
logger(`ERROR: Invalid move: ${validity}`);
if (validity === validityReason.notYourTurn) {
logger("Do you have multiple scripts running, or did you forget to await makeMove() ?");
}
return Promise.resolve(invalidMoveResponse);
}