Step 1: Requirements
Requirements
Questions to ask
- How many players? (2β4 typical)
- Is the board configurable (custom snakes/ladders positions)?
- Single dice or two dice?
- Any special rules (extra turn on 6, exact landing to win)?
- Need undo or game replay?
Functional requirements
- Board with numbered cells 1β100 (configurable)
- Snakes move you down, ladders move you up
- Players roll a dice, move forward by the result
- If you land on a snake head, slide to its tail; ladder bottom, climb to its top
- First player to reach or exceed the last cell wins
- Must land exactly on 100 to win (if roll overshoots, stay put)
Non-functional requirements
- Support 2β4 players
- Configurable board (different snake/ladder positions)
- Pluggable dice (single, double, loaded for testing)
- Clean separation of game logic from UI