Design a Chess Game
Hard · Low-Level Design · about 60 minutes
Asked at Google, Microsoft, Amazon, Apple, Sony.
Design the classes for a two-player chess game. Validate and apply moves for every piece type, alternate turns, and detect check and checkmate. Castling, en passant and promotion should fit without rewriting the core.