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, annotations, promotion UI, animation, and mobile drag behavior.
Drag
Anim
Modifier
Your move
You play white. The computer replies with random legal moves. Toggle mobile drag, animation, annotations, and auto-promotion to test the interaction model. Right-click or switch drawing to primary input to draw circles and arrows.