@ymir-js/chess
v0.14.0
Published
Chess for ymir-js: every rule, FEN/SAN/UCI/PGN, perft-verified move generation and a small built-in engine.
Maintainers
Readme
@ymir-js/chess
Chess for ymir-js: every rule (castling, en passant, promotion, mate, stalemate, draws), FEN / SAN / UCI / PGN, move generation verified with perft, and a small built-in engine.
npm install @ymir-js/chessimport { ChessGame } from '@ymir-js/chess';
const game = new ChessGame();
game.move('e4');
game.getBestMove({ depth: 3 }); // the engine's reply
game.fen();Docs: Chess · Play the demo
All of ymir-js is also available as one package: npm install ymir-js.
MIT License
