2.2.2 Package Feedback

2.2.2.3.3 Sequence Diagrams for Feedback.

Scenario 1 Right answer
Scenario 2 Wrong answer
Scenario 3 All questions are answered (Game over)


    Scenario 1 Right answer

  1. Player submits answer to Answered servlet
  2. Answered gets players name from cookie
  3. It next gets the question number of that question
  4. It then gets the answer of that question
  5. A connection to a database is opened
  6. It gets the correct answer for that question
  7. It calculates the score if answer is right
  8. If player’s answer is correct their score is entered into a database
  9. A connection to a database is opened
  10. The players new score is entered into the database
  11. A message is generated for that particular score
  12. The question is then ticked off as "Picked"
  13. A connection to a database is opened
  14. The question is ticked
  15. HTML is processed
  16. The player is presented with this information