7
Back to Problem Dungeon

Snake and Ladder

easy

Step 1: Requirements

Requirements

Questions to ask

  1. How many players? (2–4 typical)
  2. Is the board configurable (custom snakes/ladders positions)?
  3. Single dice or two dice?
  4. Any special rules (extra turn on 6, exact landing to win)?
  5. 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

1 / 7 β€” Requirements