chessKeys()
#
Object literal which defines the symbol to key mappings (reverse of chessSymbols) of a chess game as:
static chessKeys = {
'♔': 'K', '♕': 'Q', '♖': 'R', '♗': 'B', '♘': 'N', '♙': 'P',
'♚': 'k', '♛': 'q', '♜': 'r', '♝': 'b', '♞': 'n', '♟': 'p'
}
Observation
UseQuadrille.setChessSymbols(chessSymbols)
to customize the mappings.
Syntax #
Quadrille.chessKeys()