GithubHelp home page GithubHelp logo

jordangeorge / reflexes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from anthonyjr/reflexes

0.0 2.0 0.0 5.46 MB

Game written in Python for the Raspberry Pi. Tests reflexes using LED Pins connected to a breadboard.

Python 16.65% Jupyter Notebook 83.35%

reflexes's Introduction

Contents of Repository

  • Images folder
    • Helpful images for creating the project
    • Raspberry pi 3 gpio pinout image - helpful for creating the project
  • rank and average scores.ipynb
    • Jupyter notebook that ranks and filters scores from the scores.txt file and stores them in ranked-filtered-scores.xlsx
    • Also averages the scores
  • ranked-filtered-scores.xlsx
    • Excel file containing ranked and filtered scores in ascending order
  • ranked-scores.txt
    • Ranked scores in ascending order
  • reflexes.py
    • Python 2 version
  • reflexes_python3.py
    • Python 3 version
  • scores.txt
    • Raw scores

About

Test your reflexes in this exciting Raspberry Pi game designed with the intention of teaching kids about computer science and engineering. Made for Engineers Day (E-Day) 2017 at the University of Kentucky. This project has been featured at E-Day 2017-2019 as well as the Gatton Student Center Spectacular in 2018.

Once the program is run, the player enters their name and presses the 'enter' key twice to start the game. The player must then wait for the third/red LED to light up to press the button as quick as they can.

The average score is approximately 0.23. Getting less than 0.2 means that the player has great reflexes! Scores that are around 0.00006 are 'cheaters' because they're most likely holding the button down. Scores above 0.4 are typically a result of people becoming acclimated to the game, younger players, and various other reasons. Therefore, these were filtered out of the average.

Program was originally created using the Raspberry Pi 3 Model B and Python 2.

Setup

Step 1

Get started with your Raspberry Pi using this link.

Step 2

Once you've completed getting started with the Raspberry Pi, you can set up the physical aspect of this project.

What you'll need:

  • 1 x Breadboard
  • 5 x Male-to-Female jumper/DuPont wires
  • 4 x Female-to-Female jumper/DuPont wires
  • 4 x Resistor
  • 3 x LED
    • Preferably all being different colors or one being a different color from the other two
  • 2 x Tactile push buttons
Step 3

Setup everything like in the pictures below.

Step 4

Either

  • download the repository within Raspbian

or

  • download it onto a flash drive and connect that to your Raspberry Pi and copy the file to your Raspbian desktop or any other directory.
Step 5

Open reflexes_python3.py and run it. This can be done within the terminal or a python compatible IDE.

Step 6 (optional)

Use watch -n 1 tail scores.txt in the terminal to see live additions to the scores.txt file.

Helpful Images

reflexes's People

Contributors

jordangeorge avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.