chess.js game example
Play against a random-move computer
This example connects Mirasen Chessboard to chess.js through the built-in adapter. chess.js owns the rules and game state; the board owns interaction, legal targets, promotion UI, and animation.
Your move
You play white. The computer replies with random legal moves. Legal targets, promotion choices, castling, and en passant all come from chess.js through adapter helpers.