Chess
Index
Constructors
constructor
Returns Chess
Methods
board
Returns ChessPiece[][]
fen
Returns string
game_over
Returns boolean
in_checkmate
Returns boolean
in_draw
Returns boolean
in_stalemate
Returns boolean
in_threefold_repetition
Returns boolean
move
Parameters
opts: string | { from: string; promotion: ChessPieceType; to: string }
from: string
promotion: ChessPieceType
to: string
Returns any
moves
Parameters
optionalopts: { square?: any; verbose?: boolean }
optionalsquare: any
optionalverbose: boolean
Returns string[]
reset
Returns void
turn
Returns ChessPieceColor
undo
Returns void