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

Add Leaderboard, Sound Feedback, and Timer Functionality to Space Explorer Quiz Game #1064

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

Kritika75
Copy link
Contributor

@Kritika75 Kritika75 commented Nov 4, 2024

Pull Request for PyVerse 💡

Requesting to submit a pull request to the PyVerse repository.


Issue Title

Enhancements for Space Quiz Game #1037

  • I have provided the issue title.

Info about the Related Issue

The aim of the Space Explorer Quiz Game project is to create an engaging and educational experience that allows players to test their knowledge of astronomy through a series of interactive quiz questions. The project seeks to combine learning with entertainment, encouraging users to improve their understanding of space-related topics while enjoying the gameplay

  • I have described the aim of the project.

Name

Kritika Singh

  • I have provided my name.

GitHub ID

Kritika75

  • I have provided my GitHub ID.

Email ID

kritikasingh37918@gmail.com

  • I have provided my email ID.

Identify Yourself

gssoc'24 ext

  • I have mentioned my participant role.

Closes

issue no. #1037

  • I have provided the issue number.

Describe the Add-ons or Changes You've Made

  1. Leaderboard Functionality:
    Added a leaderboard to track and display player scores, along with options to retake the quiz or view scores on the final screen.
  2. Feedback Mechanism:
    Introduced a feedback system to indicate correct or incorrect answers using color coding and sound effects.
  3. Sound Effects:
    Integrated audio feedback for answers, enhancing player engagement and immersion.
  4. Timer Functionality:
    Implemented a countdown timer for each question, increasing the game's challenge and urgency.
  5. Final Screen Logic:
    Created a structured final screen to give players control over their next steps after the quiz.
  6. Improved Code Structure:
    Encapsulated the main game loop within a main() function for better readability and maintainability.
  7. Display Logic Enhancements:
    Ensured the timer is visible during questions and updated the screen smoothly with background drawing.
  • I have described my changes.

Type of Change

Select the type of change:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

The game underwent multiple playthroughs to ensure smooth transitions and accurate handling of user inputs, including validation of the leaderboard and sound effects. Edge cases, such as timeouts and rapid answer selections, were simulated to verify correct game responses. Peer feedback during testing helped identify usability issues, leading to refinements for a seamless user experience.

solar2
solar1
I tried to upload a video but it says it is too long if you want i can send the video on your discord

  • I have described my testing process.

Checklist

Please confirm the following:

  • My code follows the guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly wherever it was hard to understand.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • I have added things that prove my fix is effective or that my feature works.
  • Any dependent changes have been merged and published in downstream modules.

@UTSAVS26

Copy link

github-actions bot commented Nov 4, 2024

👋 Thank you for opening this pull request! We're excited to review your contribution. Please give us a moment, and we'll get back to you shortly!

Feel free to join our community on Discord to discuss more!

@UTSAVS26 UTSAVS26 merged commit e56bf85 into UTSAVS26:main Nov 4, 2024
0 of 22 checks passed
@UTSAVS26 UTSAVS26 added Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. Status: Approved ✔️ PRs that have passed review and are approved for merging. level2 gssoc-ext labels Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contributor Denotes issues or PRs submitted by contributors to acknowledge their participation. gssoc-ext level2 Status: Approved ✔️ PRs that have passed review and are approved for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants