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