A modular chess engine that plays 74 variants on boards from 4×8 to 12×8. Zero dependencies. Pure JavaScript. Open source.
Load the scripts, create a game, render the board. The engine handles move generation, check detection, variant rules, and board rendering.
MCE is a full game development toolkit. Custom pieces, terrain, effects, AI, animation, and rendering — use it as the engine inside your own game.
Define movement with declarative specs or full custom logic. Divergent move/attack, cannons, gapped slides, knight leaps.
Water, walls, lava — global terrain predicates. Timed effects with automatic expiry and undo support.
Full interaction loop: click handling, AI scheduling, undo/redo, multi-step turns, promotion UI. One function call.
Replace tiles, pieces, and overlays. Add surround effects. Full SVG control with animations that just work.
Connect in one command. Claude can analyze positions, generate puzzles, validate moves, and explain variant rules across all 74 chess variants.
claude mcp add --transport http moddable-tools https://tools.moddable.games/mcp
Engine evaluation with best move and principal variation for any variant.
Create mate-in-1 or mate-in-2 puzzles in standard or variant chess.
Check if a move is legal with human-readable explanations of why not.
Look up rules, board sizes, and descriptions for 74 chess variants.
Moddable Chess is one of several open-source game engines built with the same architecture: zero dependencies, embeddable, seeded RNG, and GitHub Pages deployment.