mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 14:28:36 +02:00
[IPvGO] Performance enhancement: async move option lookup (#1028)
This commit is contained in:
committed by
GitHub
parent
6f8a59593a
commit
87c4cbbc57
@@ -59,6 +59,7 @@ export function NetscriptGo(): InternalAPI<Go> {
|
||||
passTurn: (ctx: NetscriptContext) => async (): Promise<Play> => {
|
||||
if (Player.go.boardState.previousPlayer === playerColors.black) {
|
||||
helpers.log(ctx, () => `It is not your turn; you cannot pass.`);
|
||||
helpers.log(ctx, () => `Do you have multiple scripts running, or did you forget to await makeMove() ?`);
|
||||
return Promise.resolve(invalidMoveResponse);
|
||||
}
|
||||
return handlePassTurn(logger(ctx));
|
||||
|
||||
Reference in New Issue
Block a user