Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/abdelmalek-maskri/rockpaperscissors

a sophisticated rock paper scissors game
https://github.com/abdelmalek-maskri/rockpaperscissors

Last synced: about 2 months ago
JSON representation

a sophisticated rock paper scissors game

Awesome Lists containing this project

README

        

# Rock-Paper-Scissors Game

Welcome to the Rock-Paper-Scissors game! This is a simple and interactive web-based game where you can play against the computer. You can also track your score and reset it as needed.
check it out here 🤗😇 https://myfav-rock-paper-scissors.netlify.app

## Features

- **Play Against Computer:** Choose rock, paper, or scissors and let the computer make its move.
- **Score Tracking:** Your wins, losses, and ties are tracked and saved.
- **Auto Play:** Enable auto play to let the computer make moves automatically at a set interval.
- **Score Reset:** Reset your score with a confirmation dialog.
- **Keyboard Shortcuts:** Use keyboard shortcuts to make moves or reset the score.

## How to Use

1. **Play the Game:**
- Click one of the three buttons: Rock, Paper, or Scissors.
- The game will display the result and update your score.

2. **Auto Play:**
- Click the "Auto Play" button to start or stop the automatic play feature.
- You can also press the `a` key on your keyboard to toggle auto play.

3. **Reset Score:**
- Click the "Reset Score" button to initiate a score reset.
- Confirm the reset by clicking "Yes" or cancel by clicking "No."
- You can also press the `Backspace` key to initiate the reset confirmation.

4. **Keyboard Shortcuts:**
- Press `r` to choose Rock.
- Press `p` to choose Paper.
- Press `s` to choose Scissors.

## Files

- **`index.html`**: The main HTML file that defines the structure of the game.
- **`rock-paper-scissors.css`**: The CSS file for styling the game.
- **`rock-paper-scissors.js`**: The JavaScript file that contains the game logic.