An open API service indexing awesome lists of open source software.

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

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.
https://github.com/amirallami-code/rock-paper-scissors-game

game javascript js rock-paper-scissors

Last synced: 4 days ago
JSON representation

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.

Awesome Lists containing this project

README

          

# Rock, Paper, Scissors Game

![demo](images/demo.jpg)

[![MIT License](https://img.shields.io/badge/License-MIT-blue)](https://opensource.org/licenses/MIT)
![Last Update](https://img.shields.io/github/last-commit/amirallami-code/rock-paper-scissors-game?style=flat&color=blue)
[![Stars](https://img.shields.io/github/stars/amirallami-code/rock-paper-scissors-game?style=flat&color=yellow)](https://github.com/amirallami-code/binary-search-algorithm/)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)
![Contributions Welcome](https://img.shields.io/badge/Contributions-welcome-brightgreen)

## Table of Contents
- [Introduction](#introduction)
- [How to Play](#how-to-play)
- [Features](#features)
- [Technologies Used](#technologies-used)
- [Live Demo](#live-demo)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
- [Contact Information](#contact-information)

## 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](https://rpsgame-amirallami.vercel.app)

## Installation

To run this project locally:

1. Clone the repository:

```bash
git clone https://github.com/amirallami-code/rock-paper-scissors-game.git
```

2. Navigate to the project directory:

```bash
cd rock-paper-scissors-game
```

3. 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](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](https://github.com/amirallami-code/rock-paper-scissors-game)

---

⭐ Star this repository if you find it cool!