LucasZahlan/ReactionComp
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
ย | ย | |||
ย | ย | |||
ย | ย | |||
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/]