Skip to content

This project is a simple Rock, Paper, Scissors game where users play against the computer. It allows players to choose between Rock, Paper, and Scissors and keeps track of scores until one player wins by reaching three points.

License

Notifications You must be signed in to change notification settings

stephenombuya/Rock-Paper-Scissors-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game ✊📜✂️

This project is a simple Rock, Paper, Scissors game where users play against the computer. It allows players to choose between Rock, Paper, and Scissors and keeps track of scores until one player wins by reaching three points.

Live Demo

Rock-Paper-Scissors-Game - Game

Features

  • User-Friendly Interface: A clear layout with buttons for game options and score tracking.
  • Game Rules: Detailed rules provided for new players.
  • Dynamic Scoring System: Keeps track of both player and computer scores.
  • Reset Functionality: Allows players to restart the game after finishing.

Technologies Used

  • HTML5: For the basic structure of the game.
  • CSS3: For styling the game interface.
  • JavaScript: To handle game logic, user interactions, and dynamic updates.

Project Structure

Rock-Paper-Scissors-Game/
│
├── index.html        # Main HTML structure
├── styles.css        # CSS file for styling the game
├── script.js         # JavaScript file for game logic
└── README.md         # Project documentation

How to Use

  1. Clone the repository:
git clone https://github.com/stephenombuya/Rock-Paper-Scissors-Game
  1. Navigate to the project directory:
cd rock-paper-scissors-game
  1. Open the index.html file in your web browser:
open index.html
  1. Play the game:
  • Click on one of the buttons (Rock, Paper, Scissors) to make your choice.
  • The computer will randomly select its option.
  • The results will be displayed, showing the current score and winner of the round.
  • Once either the player or computer reaches 3 points, the winner will be displayed, and you can click "Play again?" to reset the game.

Future Enhancements

  • Styling Improvements: Enhance the design with animations and transitions.
  • Mobile Responsiveness: Ensure the game works well on mobile devices.
  • Advanced Features: Add a best-of-five or best-of-seven game mode.
  • Player Statistics: Track and display win rates over multiple games.

Customization

You can customize this game by:

  • Changing the UI: Modify styles.css to alter the game's appearance.
  • Adding New Features: Expand the game rules or add more choices like Lizard and Spock for an extended version of the game.

Browser Support

This project works on modern browsers such as Chrome, Firefox, Safari, and Edge.

Contributing

Contributions are welcome! If you'd like to enhance the game, please fork the repository and submit a pull request or open an issue.

License

This project is licensed under the GNU License. See the LICENSE file for details.

About

This project is a simple Rock, Paper, Scissors game where users play against the computer. It allows players to choose between Rock, Paper, and Scissors and keeps track of scores until one player wins by reaching three points.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published