Chess Engine Lite
ScriptableObject difficulty system — tune search depth and blunder chance to create ... Support ... Uses Vector Chess Pieces Pack by RhosGFX under CC0 1.0; see Third-Party Notices.txt in the ...
by CodeFrontGames
Price History +
- Minimum Unity version: 2022.3.6f3
- Render pipeline: Built-in (no pipeline-specific shaders — uses standard sprites and Unity UI)
- Dependencies: TextMeshPro (Unity Registry package)
- Scripting: C#, no external plugins or native libraries
- Input: Unity's EventSystem via pointer handlers (IPointerDownHandler / IDragHandler / IPointerUpHandler) — works with the legacy Input Manager; on the new Input System, requires an Input System UI Input Module on your EventSystem
- Dimension: 2D
- Platforms: Platform-agnostic C# and Unity UI — no platform-specific code. Verify on your target device before shipping.
Chess Engine Lite is a fully playable, single-player chess system built for extensibility. Drop it into your project and get a working human-vs-AI match with legal move validation, adjustable difficulty, and a complete UI — or use it as a clean foundation to build your own chess variant on top of.
The core engine is pure C# with zero Unity dependencies, so board state, move generation, and search are fully testable and portable. Everything visual talks to it through a static event bus, which means you can reskin the board, add a replay system, or log moves to a server without touching engine code.
Features
- Complete rules implementation — legal move generation covering castling, en passant, promotion, and check/pin validation
- Minimax AI with alpha-beta pruning, quiescence search, and MVV-LVA capture ordering, running on a background thread so the UI never stalls
- ScriptableObject difficulty system — tune search depth and blunder chance to create anything from a beatable beginner to a consistent opponent
- FEN import/export for custom positions, puzzles, and sharing board states
- Drag-and-drop interaction with colour-coded legal-move highlighting for captures and quiet moves
- Full game flow — move log with algebraic notation, pawn promotion dialog, draw offers and claims, resignation, and game-over results
- Automatic draw and end detection — checkmate, stalemate, threefold repetition, and the 50-move rule
- Event-bus architecture — subscribe to move, turn, reset, and game-over events without modifying the engine
- Swappable move generator via the IMoveGenerator interface — plug in bitboards, a native plugin, or custom variant rules
- 13-page documentation covering quick start, scene setup, architecture, full API reference, and troubleshooting
- Demo scene included — press Play and start a match immediately
What's not included
This is a single-player, local, 2D chess system, not a shrink-wrapped finished game. It ships without a main menu, PGN import/export, network or hot-seat multiplayer, move undo, a 3D board, or bundled audio clips (the audio hooks are in place and ready for your own SFX). The full list is in the included documentation so you know exactly what you're getting before you buy.
Support
Full documentation is included.
Uses Vector Chess Pieces Pack by RhosGFX under CC0 1.0; see Third-Party Notices.txt in the package for details.