Subject:: A Quiz Game
Subject:: A Quiz Game
Description:
I'am developing a quiz
game with multiple levels and
themes.
1-Use case diagram
2-Analyze
Use case : start
Actors : player
Precondition :
Main Scenario :
Player System
0-Player register 2- the system validate it
1-the player picks one choice “yes “ or “no” 3- the system displays the Difficulty
4-use case ends
Alternative :
1- Missing answer the question
2- The system promts for answer
3a Invalid answer
1- The system displays ‘’invalid‘‘ message
2- The system prompts for choice
3- Use case resumes at main Scenario step1
Exceptional : the use case ‘Start’ fails , the system repeats the use case
Main Scenario :
Player System
2-player picks choice 1- The system displays the question
3- the system displays next question
4- use case ends
Alternative :
3- Missing answer the question
4- The system promts for answer
3a Invalid answer
2- The system displays ‘’invalid‘‘ message
3- The system prompts for choice
4- Use case resumes at main Scenario step1
Exceptional : the use case ‘playquiz’ fails , the system repeats the use case
Use case : Difficulty
Main Scenario :
Player System
1-the player picks one choice 2- the system validate it
“normal“,“medium” or “hard” 3- the system displays the theme
4-use case ends
Alternative :
1- Missing choice
2- The system promts for choice
3a Invalid choice
1- The system displays ‘’invalid‘‘ message
2- The system prompts for choice
3- Use case resumes at main Scenario step1
Exceptional : the use case ‘Difficulty‘ fails , the system repeats the use case
Main Scenario :
Player System
1- the system load the question
Alternative :
Exceptional : the use case ‘Difficulty‘ fails , the system repeats the use case
Main Scenario :
Player System
1-the player picks one choice “theme1”,”
theme2” 2- the system validate it
3- the system displays the game
4-use case ends
Alternative :
1- Missing choice
2- The system promts for answer
3a Invalid choice
1- The system displays ‘’invalid‘‘ message
2- The system prompts for choice
3- Use case resumes at main Scenario step1
Exceptional : the use case ‘Theme’ fails , the system repeats the use case
Main Scenario :
Player System
1- the system displays the Result
2-use case ends
Alternative :
Exceptional : the use case ‘score’ fails , the system repeats the use case