Step 1: Requirements
Requirements
Questions to Ask
- Two-player local or networked? (Local two-player)
- Full chess rules including castling, en passant, promotion? (Yes, all standard rules)
- Undo/redo? (Yes)
- Move validation? (Yes β only legal moves allowed)
- Check, checkmate, stalemate detection? (Yes)
- 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)