From 0824c49972af2280af967a9ad3fd39d4dbf9f57c Mon Sep 17 00:00:00 2001 From: aurelie Hautbois <ext.sopra.ahautbois@grandlyon.com> Date: Thu, 7 Jan 2021 11:37:11 +0100 Subject: [PATCH] quiz add result and finished section --- docs/ecolyo/functionalities/challenge.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/ecolyo/functionalities/challenge.md b/docs/ecolyo/functionalities/challenge.md index bbc0c1d..c32847b 100644 --- a/docs/ecolyo/functionalities/challenge.md +++ b/docs/ecolyo/functionalities/challenge.md @@ -5,6 +5,7 @@ This section explain all the functionnalities in the challenge part ## Quiz +A quiz includes 4 basic questions and one custom question. ### Basic Question 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 - 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. 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. +If it is a right answer, the quiz result is incremented by one. ### Custom Question @@ -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. 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 ## Duel -- GitLab