Skip to content

This project builds a Rock-Paper-Scissors-Lizard-Spock game using Arduino, offering hands-on experience with hardware-software integration, applying classroom concepts, and providing hardware tutorials for system construction.

Notifications You must be signed in to change notification settings

Ganathipan/GP-106-Com-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Lizard Spock Game

A GP106 Computing Project

Department of Computer Engineering, Faculty of Engineering, University of Peradeniya
Batch: E/21

Project Overview

This project is an extension of the classic Rock Paper Scissors game, adding two new gestures, Lizard and Spock, to increase complexity. The game is implemented using an Arduino and includes hardware components like LEDs, push buttons, and a piezo buzzer.

The Game Rules:

  • Rock crushes Scissors
  • Scissors cuts Paper
  • Paper covers Rock
  • Rock crushes Lizard
  • Lizard poisons Spock
  • Spock smashes Scissors
  • Scissors decapitates Lizard
  • Lizard eats Paper
  • Paper disproves Spock
  • Spock vaporizes Rock

You will compete against the computer for seven rounds. The game tracks your choices and the computer’s, using LEDs to display the scores.

Hardware Components

  • Arduino UNO
  • 10 LEDs (for displaying scores and the computer’s choices)
  • Piezo buzzer (for signaling game events)
  • 6 Push buttons (for player input and starting/ending the game)
  • Breadboard, resistors, jumper wires for circuit construction

Project Features

  • Real-Time Player vs. Computer Rounds: You play against the computer in seven rounds.
  • Score Display with LEDs: Both player and computer scores are shown with LEDs in binary form.
  • Timed Input Selection: A 3-second window is provided for the player to input their gesture using push buttons.
  • Buzzer Notifications: Different tones to indicate the start, end, and round results.
  • Serial Monitor: The game summary and current round details are displayed via the Arduino serial monitor.
  • Game End Indication: After 7 rounds, all LEDs blink, and a distinct buzzer sound plays to indicate the game’s end.

Circuit Diagram

You can find the circuit diagram in the schematics/ folder or view it online here.

How to Play

  1. Start the Game: Press the "Start" button to begin the game.
  2. Choose a Gesture: Use one of the five buttons to choose Rock, Paper, Scissors, Lizard, or Spock.
  3. Computer Chooses: After you make your selection, the computer will randomly choose one of the five gestures, and the result will be displayed using LEDs.
  4. Track the Score: The scores will update after each round and can be viewed on the LED displays.
  5. End the Game: After 7 rounds, the game ends automatically, or you can end it manually by pressing the "End" button.

Installation Instructions

  1. Clone the Repository:
    git clone [https://github.com/yourusername/rock-paper-scissors-lizard-spock.git](https://github.com/Ganathipan/GP-106-Com-Project)
  2. Upload Code to Arduino: Open the .ino file in Arduino IDE and upload it to your Arduino UNO board.
  3. Build the Circuit: Follow the provided circuit diagram to set up the hardware.
  4. Start Playing: Press the "Start" button to begin playing the game.

About

This project builds a Rock-Paper-Scissors-Lizard-Spock game using Arduino, offering hands-on experience with hardware-software integration, applying classroom concepts, and providing hardware tutorials for system construction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages