Back to All 30 System Design Questions
LLDHardQuestion 26 of 30
Design a Multiplayer Chess Game Engine with Move Validation & Clocks
Design an extensible object-oriented chess game engine featuring board coordinate representations, piece polymorphism, special move validation (castling, en passant, promotion), check/checkmate detection, and Fischer chess clocks.
Asked by:GoogleAmazonMicrosoftChess.com
#Low Level Design#Object Oriented Design#Polymorphism#State Pattern#Board Game
Object-Oriented Class Hierarchy
Compiling architecture diagram...
Chess Game Engine
Decouples piece trajectory rules into polymorphic subclasses, validates king safety via speculative move simulation and rollback, and models moves as command objects.