Complete Chess game with 2D/3D layouts, full FIDE rules, chess bot, undo/redo, timers, notation & FEN support. Includes PuzzleMaker for custom positions and ChessBuilder editor for chess variants.Ultimate Chess Framework is a production ready chess system that goes well beyond a standard chess template. It ships with three fully integrated game modes. 1)Classic Chess 2) PuzzleMaker 3)Chess Builder. giving you everything from a polished, rule complete chess game to visual editor for designing entirely new Chess variations. you can make many different chess games by using Chess Builder editor tool Every core chess rule is implemented and tested. No placeholder logic. No missing edge cases. Import it, hit play, and you have a working chess game.i) Classic ChessA complete, playable chess game supporting both 2D and 3D board layouts, switchable at runtime.Full FIDE rules coverage.Castling (kingside and queenside) with path clearance, check validation, and move state trackingEn Passant with last move awarenessPawn Promotion with an interactive piece selection UICheck, Checkmate, and Stalemate detectionInsufficient Material draw detectionTimeout vs. Insufficient Material draw (FIDE compliant)Built in gameplay sytem:Undo / Redo - Complete move history with full state restoration, working through captures, promotions, and castlingChess Timer - Configurable time control with optional increment per moveAlgebraic Notation - Live scrollable move log with standard notation (Nf3, O-O, exd5, Qh5#)Move Highlighting -Legal move indicators on piece selectionDrag and Drop and Click to Move - Both input methods supported with smooth piece animationCaptured Pieces Display - Visual tracking of captured material for both sidesBoard Rotation - Flip the 2D board perspectiveFEN Import / Export - Load or share any board position using standard FEN stringsChess Bot: A built in AI opponent with 10 difficulty levels, powered by Negamax search with Alpha Beta pruning, move ordering, piece square evaluation tables, and quiescence search at higher levels. The AI runs on a background thread to keep gameplay smooth.ii) Puzzle MakerDesign and play custom chess puzzles at runtime, directly inside the game scene.Two world space piece palettes (White and Black) appear beside the board. Select any piece type, then click or drag it onto any square. Rearrange existing pieces by picking them up and moving them. Drag a piece off the board to remove it.Any configuration is endgame studies, tactical puzzles, asymmetric setups, or unconventional layouts like all queens vs. all queens. Paste a FEN string to load a position instantly, or reset to the standard opening with one click.When the position is ready, switch to play mode. The puzzle becomes a live game with full rules, AI, timer, and all active immediately. Toggle back to edit mode at any time. The framework validates the board before play, checking for missing or duplicate kings, illegal pawn placement, and empty boards.iii) Chess Builder - custom chess and board designerThis is what sets Ultimate Chess Framework apart.ChessBuilder provides a dedicated Unity Editor window for designing custom chess variant levels. Boards are not limited to 8×8 create any size from 2×2 up to 50×50.The editor features a full visual canvas with pan, zoom, and auto centering. Place and rearrange pieces directly on the grid. Set individual pawn movement directions (up, down, left, right) and configure promotion rules per pawn. Save and load levels as ScriptableObject assets.Six special tile types enable game mechanics far beyond standard chess:Blocked : Impassable wall. Pieces cannot move through or land on it.Deleted : The tile doesn't exist. Carve non rectangular board shapes L-boards, cross patterns, arenas.Teleport : Linked warp pair. A piece landing on one tile is instantly moved to its partner. The editor draws a visual connection line between paired tiles.Hazard : Trap tile that destroys any piece landing on it. Can be set as a surprise hazard invisible until triggered.Transform : Changes a piece into a different type on landing (e.g., a pawn becomes a knight).Promotion Zone : Enables pawn promotion anywhere on the board, not just the last rank.Custom movement rules allow limiting the range of Queens, Rooks, Bishops, and Kings per level. Three win conditions are available: standard checkmate (King Required), piece elimination (capture all enemy pieces), and freestyle (sandbox, no win condition).All levels save as lightweight ScriptableObjects. Assign one to a scene reference, and the framework handles board generation, piece spawning, tile behavior, and rule enforcement automatically.Code ArchitectureThe codebase is modular, well separated, and built to be extended.Event Driven Design - A centralized event bus (ChessEvents) broadcasts over 20 game events including move execution, captures, turn changes, timer updates, and state transitions. Hook into any event without modifying core scripts.Strategy Pattern - Game modes are swappable strategies implementing IChessMode. Adding a new mode requires one interface no changes to the manager.Interface Based Rules - IGameRules allows custom rule implementations. Classic chess and ChessBuilder each have their own, and new ones can be added independently.Board Abstraction - Board operations go through IBoardService, keeping logic clean and testable.ScriptableObject Piece Factory - Visual prefabs are configured in the inspector. Piece logic components are added programmatically at runtime no redundant logic prefabs.Dual Mode Visuals - Every piece manages both 2D and 3D representations through a PieceVisuals component. Layout switching at runtime requires no scene reload.~50 scripts total. Only external dependency is TextMeshPro (included with Unity).


