Skip to content

Integration with chess-core

Use @pech/chess-core for legal move generation and game state. In onMove, validate the move with the core and call board.setPosition(game.fen()) (or similar) after applying it; return false to reject the move.