Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dipeshduwal/rockpaperscissor
Rock, paper, scissors (also known as Rochambeau, Roshambo, or Janken) is a fun and easy hand game that anyone can learn and enjoy. It’s a great way to make minor decisions when you and a friend can’t agree on something, or even just an entertaining way to pass the time.
https://github.com/dipeshduwal/rockpaperscissor
Last synced: about 2 months ago
JSON representation
Rock, paper, scissors (also known as Rochambeau, Roshambo, or Janken) is a fun and easy hand game that anyone can learn and enjoy. It’s a great way to make minor decisions when you and a friend can’t agree on something, or even just an entertaining way to pass the time.
- Host: GitHub
- URL: https://github.com/dipeshduwal/rockpaperscissor
- Owner: dipeshduwal
- Created: 2024-08-28T04:56:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T05:54:32.000Z (4 months ago)
- Last Synced: 2024-08-28T06:57:50.692Z (4 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RockPaperScissor
**Live Preview:** https://dipeshduwal.github.io/RockPaperScissor/
This is a simple Rock-Paper-Scissors game built using JavaScript with an interactive graphical user interface (GUI). The game is designed to be played against the computer, where the first player to score 5 points wins the game.
**Technologies Used:**
HTML5: Structure of the game
CSS3: Basic styling for the game layout and modal
JavaScript (ES6): Core game logic and dynamic updates
Includes functions to handle player/computer choice comparison, score updates, and GUI updates**Features:**
1. Interactive GUI with buttons for each choice: Rock, Paper, and Scissors.
2. Display of the player's and computer's choices with emojis for clarity:
- ✊ for Rock
- ✋ for Paper
- ✌ for Scissors
3. Dynamic score updates after each round.
4. A modal to display the final result when a player wins 5 rounds.
5. Option to restart the game at any time.**How to Play**:
1. Start the game by choosing between Rock, Paper, or Scissors by clicking the corresponding button.
2. The computer will randomly select its choice.
3. The result of each round will be displayed, showing who won or if it was a tie.
4. The first player to reach 5 points wins the game.
5. Once the game is over, a modal will appear with the final result, and you can restart the game by clicking the restart button.