Design
Chess Game
Design a two-player chess game with all piece types, legal move validation, check/checkmate detection, and turn management.
01 - Why interviewers ask this
Chess is a favorite because piece movement rules are genuinely varied — it rewards candidates who reach for polymorphism (each piece type implements its own move validation) over one giant switch statement.
02 - Where this system exists in the real world
You interact with this design every day.
Online chess platforms (move validation engines)
Chess puzzle and training apps
Board-game engines with piece-specific movement rules
03 - What you'll master
Solve this once. Know it forever.
Use polymorphism for per-piece movement rules
Detect check, checkmate, and stalemate conditions
Model a board and move history cleanly
04 - What you'll design
7 functional · 3 non-functional requirements.
Support all six piece types: King, Queen, Rook, Bishop, Knight, Pawn
6 more requirements inside
Sign in to unlock the full brief and start designing
05 - Companies that ask this
You may face this exact question in your next interview.
Ready?
Open the canvas.
Design it yourself.
See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.
Start Solving