Skip to content

LucasZahlan/ReactionComp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Reaction Time Game ๐ŸŽฏ
Author: Lucas Zahlan

Overview
This is a Java-based reaction time game that tests how quickly a user can react when a green circle appears. The game uses the Processing library to handle graphics and timing.

๐Ÿš€ How to Run the Project
Option 1: Using the Processing IDE (Easiest)
Download & Install Processing โ†’ Processing Download
Open the Processing application
Copy & Paste the ReactionComp.java code into a new sketch
Click the Run button โ–ถ
Option 2: Running the Java File Manually
If you want to compile and run the game without the Processing IDE, follow these steps:

1๏ธโƒฃ Install Java (if not already installed)
You need OpenJDK or Oracle JDK. Download the latest version here:
OpenJDK (Recommended)
Oracle JDK
2๏ธโƒฃ Install Processing and Locate core.jar
Download Processing: https://processing.org/download
Find core.jar:
Windows: C:\Program Files\Processing\lib\core.jar
Mac: /Applications/Processing.app/Contents/Java/core.jar
Linux: /usr/share/processing/core.jar
3๏ธโƒฃ Compile and Run the Program
Open a terminal or command prompt, navigate to the project folder, and run:

bash
Copy
Edit
javac -cp "path/to/core.jar" ReactionComp.java
java -cp ".;path/to/core.jar" ReactionComp  # Windows
java -cp ".:path/to/core.jar" ReactionComp  # macOS/Linux
๐Ÿ“Œ Replace path/to/core.jar with the actual path where core.jar is located.

๐Ÿ•น๏ธ How to Play
Click "Start" to begin the game.
Wait for the green circle to appear.
Click the green circle as fast as you can!
Your reaction time (in milliseconds) will be displayed.
Click "Reset" to play again.
โš ๏ธ If you click before the green circle appears, you will be penalized! โŒ

๐Ÿ“Œ Features
โœ… Random delay before the green circle appears
โœ… Reaction time measurement in milliseconds
โœ… Simple & intuitive UI
โœ… Works on any OS with Java installed

๐Ÿ“„ License
This project is open-source and licensed under the MIT License.
Feel free to use, modify, and distribute it!

๐Ÿ”— Connect with Me
๐Ÿ’ผ GitHub: [https://github.com/LucasZahlan]
๐Ÿ“ง Email: [LucasZahlan@gmail.com]
๐Ÿ“ข LinkedIn: [https://www.linkedin.com/in/lucas-zahlan-555370293/]

About

This is a program written in java to test a user's reaction time utilizing random numbers and mouse click inputs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages