Lua API
On this page
ChessMoveResult
Identifies the chess move attempt result. Negative/0 values are failures.
Fields:
Description
CheckMatedOpponent | 2048 | v1.0.0 | You have checkmated your opponent! |
FailureAttackingOwnPiece | -105 | v1.0.0 | You cannot attack your own pieces |
FailureCannotMoveIntoCheck | -106 | v1.0.0 | That move would put you in check |
FailureCastleOutOfCheck | -108 | v1.0.0 | You cannot castle out of check |
FailureCastlePieceMoved | -110 | v1.0.0 | You cannot castle after moving the King or Rook |
FailureCastleThroughCheck | -109 | v1.0.0 | You cannot castle through check |
FailureInvalidDirection | -100 | v1.0.0 | The selected piece cannot move that direction |
FailureInvalidDistance | -101 | v1.0.0 | The selected piece cannot move that far |
FailureInvalidMove | 0 | v1.0.0 | That move is invalid |
FailureMovedPieceOffBoard | -104 | v1.0.0 | You cannot move off the board |
FailureMovingEmptySquare | -102 | v1.0.0 | You tried to move an empty square |
FailureMovingOpponentPiece | -103 | v1.0.0 | The selected piece is not yours |
FailureNotYourTurn | -3 | v1.0.0 | Its not your turn, please wait for your opponents move. |
FailurePathBlocked | -107 | v1.0.0 | You can only move through empty squares |
OpponentInCheck | 1024 | v1.0.0 | Your opponent is in Check. |
Success | 1 | v1.0.0 | Successful move. |