Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New game]: Minimalistic Quiz game #4175

Closed
1 task done
chaanakyaaM opened this issue Jun 3, 2024 · 4 comments
Closed
1 task done

[New game]: Minimalistic Quiz game #4175

chaanakyaaM opened this issue Jun 3, 2024 · 4 comments
Assignees
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

Comments

@chaanakyaaM
Copy link

🎮 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.

Screenshot (80)

Select program in which you are contributing

GSSoC24

Code of Conduct

@kunjgit kunjgit added level3 Adding new features New Game 🎮 This is the label that will be used on issues that are raising new game issue labels Jun 3, 2024
@kunjgit
Copy link
Owner

kunjgit commented Jun 3, 2024

Hey @chaanakyaaM !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹️

@kunjgit kunjgit added the gssoc GSSoC24 program label label Jun 3, 2024
@kunjgit
Copy link
Owner

kunjgit commented Jun 3, 2024

Hey @chaanakyaaM!
We are already having a similar game request in #4092 👀
Make sure you come up with a cool unique idea 😀
Waiting for your new game idea 💗.

@kunjgit kunjgit closed this as completed Jun 3, 2024
@kunjgit
Copy link
Owner

kunjgit commented Jun 3, 2024

Hey @chaanakyaaM ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

@chaanakyaaM
Copy link
Author

/assign

@chaanakyaaM chaanakyaaM changed the title [New game]: Quiz game [New game]: Minimalistic Quiz game Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
2 participants