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
multi2 gets player's name
multi2 gets score (the score is assigned zero from CreateNewPlayer)
multi2 seeks a selection of numbers
a connection is opened to the database
all unpicked numbers are selected only
these numbers return in an array back to multi2
from the length of that array a random number is picked
the picked number’s value in the array is the question number
a connection is opened
a question and three answers are got
they are then returned to multi2 servlet
multi2 checks the score values from this posted form
it then generates a cookie
the players name is assigned to the database
a connection is opened
players name is entered into a database with an initial score of zero
multi2 generates the question and answers into html
the GUI is displayed to the player
first a radio button is selected ie.one of the possible answers
the player then presses the submit button