3.1 Package Game

3.1.2.3 Sequence Diagrams for Game.

Scenario 1 Create a new game
Scenario 2 Player omits name in textfield
Scenario 3 Player plays multi-choice
Scenario 4 Player forgets to select radio button


    Scenario 3 Player plays multi-choice

  1. multi2 gets player's name
  2. multi2 gets score (the score is assigned zero from CreateNewPlayer)
  3. multi2 seeks a selection of numbers
  4. a connection is opened to the database
  5. all unpicked numbers are selected only
  6. these numbers return in an array back to multi2
  7. from the length of that array a random number is picked
  8. the picked number’s value in the array is the question number
  9. a connection is opened
  10. a question and three answers are got
  11. they are then returned to multi2 servlet
  12. multi2 checks the score values from this posted form
  13. it then generates a cookie
  14. the players name is assigned to the database
  15. a connection is opened
  16. players name is entered into a database with an initial score of zero
  17. multi2 generates the question and answers into html
  18. the GUI is displayed to the player
  19. first a radio button is selected ie.one of the possible answers
  20. the player then presses the submit button