[New game]: Minimalistic Quiz game #4175
Labels
gssoc
GSSoC24 program label
level3
Adding new features
New Game 🎮
This is the label that will be used on issues that are raising new game issue
🎮 Game Request
Game logic and basic description
Game Logic:
Quiz Data Setup: The quiz questions, options, and correct answers are stored in an array of objects named quizData.
Display Question: The displayQuestion() function dynamically generates HTML elements to display the current question and its options on the webpage. It also shuffles the order of the options each time a question is displayed.
Check Answer: The checkAnswer() function verifies if the user has selected an option and checks whether it matches the correct answer. It updates the score accordingly and moves to the next question.
Display Result: When all questions are answered, the displayResult() function hides the quiz area and displays the user's score along with an option to retry or show correct answers.
Retry Quiz: The retryQuiz() function resets the quiz by setting the current question back to the first question, resetting the score, and clearing any incorrect answers recorded.
Show Answer: The showAnswer() function hides the quiz area, displays the user's score, and reveals the correct answers to the questions that were answered incorrectly.
Point down the features
Game points
Interactive User Interface: The game provides a visually appealing and interactive user interface where users can easily navigate through the quiz questions and select their answers.
Randomized Options: To enhance replayability and challenge, the order of options for each question is randomized every time the question is displayed, ensuring that users can't rely on memorizing the position of the correct answer.
Score Tracking: The game keeps track of the user's score as they progress through the quiz, providing immediate feedback on their performance.
Feedback on Incorrect Answers: If a user selects an incorrect answer, the game records it and provides feedback at the end of the quiz, showing the correct answer along with the user's choice.
Retry Option: Users have the option to retry the quiz after completing it, allowing them to attempt it again and improve their score.
Show Answers: Additionally, users can choose to view the correct answers for the questions they answered incorrectly, helping them learn from their mistakes and improve their knowledge.
Educational Value: The game serves as an educational tool, testing users' knowledge on various topics while providing an engaging and entertaining experience.
Select program in which you are contributing
GSSoC24
Code of Conduct
The text was updated successfully, but these errors were encountered: