Coder Social home page Coder Social logo

arduino's Introduction

Arduino Project

Countdown

About

This is a simple game where players try to be the first to hit the button on their side when a countdown timer reaches zero.

When the game starts a random number between 3-9 is generated and set as the number to start the timer at, then another random number is generated from 250-550 which represents the speed of the game. If the number 250 is generated there are 0.25 seconds between numbers and 550 means 0.55 seconds between numbers.

Controls

To start the game press either one of the two buttons and get the players ready, this will initiate the timer. When the timer hits 0 each player must try to be the first to hit the button on their side, the player to first hit his button will get a green light on his side of the board, while the other player gets a red light. The board will then reset itself after 3 seconds. If one of the players presses his button before the timer hits 0, he loses and the board resets itself.

References

Connecting the 7-digit-display — http://www.instructables.com/id/Arduino-7-Segment-Click-Counter/

User 'CrossRoads' for timer template — http://forum.arduino.cc/index.php?topic=45787.0


This project is based on the project ideas in canvas.

Made by Alexander Freyr Lúðvíksson, Helga Eyþórsdóttir, Íris Ósk Óttardóttir and Jóhann Kjartansson

arduino's People

Contributors

alexanderfl avatar

Watchers

James Cloos 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.