GameMovement extension

on

Methods

makeGatingMove(BishopState state, GatingMove move) BishopState?
makeMove(Move move, [bool generateMeta = true]) bool
Make a move and modify the game state. Returns true if the move was valid and made successfully. generateMeta determines whether to generate the BishopState.moveMeta field. Set this to false for more efficient calculations.
makePassMove(BishopState state, PassMove move) BishopState?
makeStandardMove(BishopState state, Move move) BishopState?
moveNormalMove(BishopState state, Move move) BishopState?
undo() Move?
Revert to the previous state in history and undoes the move that was last made. Returns the move that was undone.