7
Back to Problem Dungeon

Chess Game

hard

Step 1: Requirements

Requirements

Questions to Ask

  1. Two-player local or networked? (Local two-player)
  2. Full chess rules including castling, en passant, promotion? (Yes, all standard rules)
  3. Undo/redo? (Yes)
  4. Move validation? (Yes β€” only legal moves allowed)
  5. Check, checkmate, stalemate detection? (Yes)
  6. Timer? (Optional β€” not in initial scope)

Functional Requirements

  • 8x8 board with standard piece placement
  • Two players alternate turns (white first)
  • Each piece type has its own movement rules
  • Validate moves: can't move into check, can't move through pieces (except knight)
  • Detect check, checkmate, stalemate
  • Support castling, en passant, pawn promotion
  • Undo/redo moves
  • Display board state

Non-Functional Requirements

  • Move validation must be deterministic
  • Game state must be serializable (for save/load)

1 / 7 β€” Requirements