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

✨[FEATURE] Reaction Timer: Color change game with tkinter UI #352

Open
omkarmakar opened this issue Oct 20, 2024 · 2 comments
Open

✨[FEATURE] Reaction Timer: Color change game with tkinter UI #352

omkarmakar opened this issue Oct 20, 2024 · 2 comments

Comments

@omkarmakar
Copy link
Contributor

🌟 Feature Overview

  • Simple UI: status label, clickable button, and start button.
  • Randomized delay: button changes color after a random delay (2-5 seconds).
  • Reaction time measurement: tracks the time between color change and user click.
  • Early click prevention: "Too Soon!" warning if clicked before the color change.
  • Automatic reset after each round for replay.
  • Unpredictability: random delay adds challenge and keeps gameplay engaging.
  • Visual feedback: button transitions from gray (waiting) to green (clickable).
  • Lightweight and responsive: smooth gameplay with simple visuals and minimal resource usage.

🤔 Why this feature?

  • Reaction time measurement: tracks the time between color change and user click.
  • Unpredictability: random delay adds challenge and keeps gameplay engaging

📋 Expected Behavior

  • The game starts with a gray button and a status label instructing the player to wait.
  • After pressing the "Start" button, the game enters a countdown period of 2 to 5 seconds before the button turns green.
  • When the button turns green, the status label updates to prompt the player to click the button.
  • The player must click the button as quickly as possible after it turns green.
  • If the player clicks the button:
    • Before it turns green: A warning message ("Too Soon!") appears, and the game resets.
    • After it turns green: A message box displays the player's reaction time in seconds, and the game resets.
  • After each round, the user can press the "Start" button again to play another round without needing to restart the application.
  • The UI remains responsive throughout the gameplay, ensuring a smooth user experience.

🖼️ Example/Mockups

n/A

📝 Additional Details

n/A

Copy link
Contributor

👋 Thank you @omkarmakar for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

@omkarmakar
Copy link
Contributor Author

im taking up the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants