Some design tools

 

Scenarios

 

Capture requirements with words. Instead of thinking about all the possible paths, describe just one successful scenario.

 

The player starts on square 1 and says his name. He throws two dice. He moves his man for the roll. He slides to another square because he landed on a slide square. He picks a card because his roll was a roll that made him pick a card. He moved the number the card said and slid again. The game asks whether he wants to continue, and he says yes.  He repeated this until he reached 100 and won.

 

Use case in words.

 

1.Player starts on 1 and says his name.

2. Player rolls the dice

3. Player moves man for the roll and slides.

4. Player picks a card because he rolled a card triggering roll.

5. Player moves his man for the card and slides once more.

6. The games asks if he wants to continue.

7. Player answers yes.

 

 

3a. The player doesn’t land on a slide square

    .1 He stays moves the dice roll but does not slide

3b. The player lands on a square greater than 100

   .1 He adjusts back to 100

   .2 He wins and stops playing

5a. The player does not land on a card triggering roll

    .1 He does not pick a card

7a. Player answers no

   .1 Game stops

 

Use case in picture:

 

 


 

Sequence diagram