mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 01:03:01 +02:00
IPVGO: Ensure getValidMoves correctly handles playing as white (#2292)
This commit is contained in:
committed by
GitHub
parent
b025a4d0c1
commit
02f2f1be74
@@ -97,7 +97,7 @@ export function NetscriptGo(): InternalAPI<NSGo> {
|
||||
return getValidMoves(undefined, true);
|
||||
}
|
||||
const playAsWhite = helpers.boolean(ctx, "playAsWhite", _playAsWhite ?? false);
|
||||
const State = validateBoardState(error(ctx), _boardState, _priorBoardState);
|
||||
const State = validateBoardState(error(ctx), _boardState, _priorBoardState, playAsWhite);
|
||||
return getValidMoves(State, playAsWhite);
|
||||
},
|
||||
getChains: (ctx) => (_boardState) => {
|
||||
|
||||
Reference in New Issue
Block a user