Skip to content
Snippets Groups Projects
Commit 0824c499 authored by Aurélie HAUTBOIS's avatar Aurélie HAUTBOIS
Browse files

quiz add result and finished section

parent e3de9bda
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ This section explain all the functionnalities in the challenge part ...@@ -5,6 +5,7 @@ This section explain all the functionnalities in the challenge part
## Quiz ## Quiz
A quiz includes 4 basic questions and one custom question.
### Basic Question ### Basic Question
All basics Questions are created in the quizEntity.json. We have to add : All basics Questions are created in the quizEntity.json. We have to add :
...@@ -13,9 +14,12 @@ All basics Questions are created in the quizEntity.json. We have to add : ...@@ -13,9 +14,12 @@ All basics Questions are created in the quizEntity.json. We have to add :
- description => Explain the question - description => Explain the question
- source => Source of the explanaition - source => Source of the explanaition
This questions and answers are in random order.
In the question page the user have to select an answer and click validate. In the question page the user have to select an answer and click validate.
Then, he sees the right answer and a modal with the explanation and the source. After this modal, he goes to the next question. Then, he sees the right answer and a modal with the explanation and the source. After this modal, he goes to the next question.
Depends on the answer, the question result state is set either correct or incorrect. Depends on the answer, the question result state is set either correct or incorrect.
If it is a right answer, the quiz result is incremented by one.
### Custom Question ### Custom Question
...@@ -27,6 +31,8 @@ We get all this information to determine the custom question (All information ar ...@@ -27,6 +31,8 @@ We get all this information to determine the custom question (All information ar
Then, he generate two randoms answers following the right answer. Then, he generate two randoms answers following the right answer.
A user can stop during a quiz and picks up where he left off. To define where the user left off, we have to check if at least one of the question result status is unlocked. A user can stop during a quiz and picks up where he left off. To define where the user left off, we have to check if at least one of the question result status is unlocked.
Once the custom question is answered, the quiz state is set to done. Then, the user sees his result and his earned stars. He can also retry or go back to the challenge page.
## Mission ## Mission
## Duel ## Duel
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment