@@ -7,21 +7,21 @@ This section explain all the functionnalities in the challenge part
...
@@ -7,21 +7,21 @@ This section explain all the functionnalities in the challenge part
### 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 :
- questionLabel => Label of the question
- questionLabel => Label of the question
- Answers => An array of three answers (answerLabel, isTrue)
- Answers => An array of three answers (answerLabel, isTrue)
- description => Explain the question
- description => Explain the question
- source => Source of the explanaition
- source => Source of the explanaition
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 explaination and the source. After this modal, he goes to the next question.
Then, he sees the right answer and a modal with the explaination and the source. After this modal, he goes to the next question.
### Custom Question
### Custom Question
At the end of every quiz, we're creating a custom question. During the creation of the quiz, we have to add :
At the end of every quiz, we're creating a custom question. During the creation of the quiz, we have to add :
- type => data or calculation
- type => data or calculation
- period => the period selected for the calcul
- period => the period selected for the calcul
- timestep => the interval of the calcul (Day, Month, Year)
- timestep => the interval of the calcul (Day, Month, Year)
We get all this information to determine the custom question (All information are in the quizEntity.json). Depending of the question type, the system calcul a maximum or an average data.
We get all this information to determine the custom question (All information are in the quizEntity.json). Depending of the question type, the system calcul a maximum or an average data.
Then, he generate two randoms answers following the right answer.
Then, he generate two randoms answers following the right answer.