This is a Quiz app. It's expected that the player will be able to:
-
Insert words and have them counted as a hit as soon as the player types the last letter of each word.
-
After a hit, the input box will be cleared and the focus will remain on the input box.
-
There will be a 5 min timer to finish the game.
- If the player completes the quiz in less than 5 min, an alert will tell praise him.
- If the player doesn't complete within 5 min, an alert will tell him his score.
-
There will be a button to start the timer.
- URL
- Execute "Load Question" command with above data.
- System downloads data from the URL.
- System validates downloaded data.
- System creates question from valid data.
- System delivers question and correct answers.
- System delivers invalid data error.
- System delivers connectivty error.
- Execute "Start" command
- System starts the counter.
- Counter delivers start message.
- Counter delivers current seconds.
- System enables the user to insert guesses.
- Execute "Restart Game" command.
- System deletes old answers.
- System stops the counter.
- System resets the counter.
- System delivers reset message
- String
- Execute "Add guess" command with the above data.
- System validates the user guess
- System saves the user guess.
- System delivers all answers count from previous answers.
- System delivers all answers already saved
- System doesn't save empty guess (answer)
- Execute "Validate Answers" command with the above data.
- System valides if all saved answers is equal to the total correct answers that came from server.
- System stop the counter.
- System delivers success message.
- Execute "Validate user guesses" command with the above data.
- System verify the user guesses.
- System informs if the game is finished.
GET *url*
200 RESPONSE
{
"question": "What are all the java keywords?",
"answer": [
"abstract",
"assert",
"boolean",
"break",
"byte",
"case",
"catch",
"char",
"class",
"const",
"continue",
"default",
"do",
"double",
"else",
"enum",
"extends",
"final",
"finally",
"float",
"for",
"goto",
"if",
"implements",
"import",
"instanceof",
"int",
"interface",
"long",
"native",
"new",
"package",
"private",
"protected",
"public",
"return",
"short",
"static",
"strictfp",
"super",
"switch",
"synchronized",
"this",
"throw",
"throws",
"transient",
"try",
"void",
"volatile",
"while"
]
}