Skip to content

Rishabh821/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

A simple web-based implementation of the classic Rock-Paper-Scissors game. Players compete against the computer to see who can score the most points!


Features

  • Interactive Gameplay: Choose between Rock, Paper, or Scissors and see the outcome instantly.
  • Dynamic Scoring: Keeps track of both user and computer scores.
  • Reset Functionality: Reset scores and start fresh with a single click.
  • Responsive Design: Works on all devices with a modern browser.

Technologies Used

  • HTML: Provides the structure of the web page.
  • CSS: Styles the game interface.
  • JavaScript: Implements game logic and user interactions.

Setup Instructions

1. Clone the Repository

git clone https://github.com/your-username/rock-paper-scissors.git
cd rock-paper-scissors

2. Open in Browser

Open the index.html file in your preferred web browser.


How to Play

  1. Choose Rock, Paper, or Scissors by clicking the corresponding button.
  2. The computer will randomly select its choice.
  3. The result will be displayed, indicating who won the round:
    • You win: Your score increases.
    • You lose: The computer's score increases.
    • Draw: No score changes.
  4. Reset the game anytime using the Reset Scores button.

File Structure

rock-paper-scissors/
├── index.html     # Main HTML file
├── style.css      # CSS for styling the game
├── app.js         # JavaScript for game logic
└── README.md      # Game documentation

Customization

Feel free to modify the game as per your needs:

  • Styling: Update style.css to customize the look and feel.
  • Logic: Add more game modes (e.g., "Best of 3") or animations in app.js.

Future Enhancements

  • Add sound effects for user interactions.
  • Display a history of choices and outcomes.
  • Introduce multiplayer functionality.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code.

About

A web version for a game of Rock-Paper-Scissors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published