Skip to content

Rock, Paper, Scissors is a classic hand game that has been played for generations. It's a simple yet entertaining way to make quick decisions or settle disputes.

License

Notifications You must be signed in to change notification settings

amirallami-code/rock-paper-scissors-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game

demo

MIT License Last Update Stars PRs Welcome Contributions Welcome

Table of Contents

Introduction

Rock, Paper, Scissors is a classic hand game that has entertained generations. This project brings the timeless game to the digital world, allowing you to play against a computer opponent anytime, anywhere.

How to Play

  1. Players: You vs. the Computer
  2. Rules:
    • Choose your move: Rock (👊), Paper (✋), or Scissors (✌️)
    • The winner is determined as follows:
      • Rock crushes Scissors
      • Scissors cut Paper
      • Paper covers Rock
    • If both players choose the same shape, it's a tie
  3. Gameplay:
    • Click on your chosen move
    • The computer's choice is generated randomly
    • The winner of the round is displayed
    • Score is updated after each round
    • Play as many rounds as you like!

Features

  • Intuitive user interface
  • Real-time score tracking
  • Responsive design for desktop and mobile

Technologies Used

  • HTML5: Structure of the game interface
  • CSS3: Styling and animations
  • JavaScript (ES6+): Game logic and DOM manipulation
  • LocalStorage: For saving game progress

Live Demo

Experience the game live: Rock, Paper, Scissors Game

Installation

To run this project locally:

  1. Clone the repository:
  git clone https://github.com/amirallami-code/rock-paper-scissors-game.git
  1. Navigate to the project directory:
  cd rock-paper-scissors-game
  1. Open index.html in your preferred web browser

Usage

  1. Open the game in your web browser.
  2. Click on your choice of Rock, Paper, or Scissors.
  3. View the computer's choice and the round result.
  4. Check the updated score.
  5. Play again!

Contributing

We welcome contributions! If you'd like to contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature/AmazingFeature)
  3. Make your changes
  4. Commit your changes (git commit -m 'Add some AmazingFeature')
  5. Push to the branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request

License

This project is open source and available under the MIT License.

Contact Information

For questions or feedback about this project, please contact:

Amirhossein Allami - amirallami.dev@gmail.com

Project Link: https://github.com/amirallami-code/rock-paper-scissors-game


We appreciate your interest in this project. If you find it helpful, consider starring the repository.

About

Rock, Paper, Scissors is a classic hand game that has been played for generations. It's a simple yet entertaining way to make quick decisions or settle disputes.

Topics

Resources

License

Stars

Watchers

Forks