Skip to content

Rock paper scissors game is also known as stone paper scissors. It is a hand game that is usually played between 2 people, each player can randomly form any one of three from their hand.

Notifications You must be signed in to change notification settings

mekanhaji/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

This project is a web-based implementation of the classic game "Rock Paper Scissors". It allows players to compete against the computer in a series of rounds. The game is built using JavaScript, HTML, and CSS.

Features

v.1.1.0

  • New favicon
  • Now works offline

v1.0.0

  • User-friendly interface for selecting rock, paper, or scissors.
  • Random selection by the computer as the opponent.
  • Real-time updates of the score after each round.

Technologies Used

  • JavaScript: Handles the game logic and generates random computer selections.
  • HTML: Provides the structure and layout of the game interface.
  • CSS: Adds styling and visual enhancements to the game.

Usage

To play the Rock Paper Scissors game, follow these steps:

  1. Open the this link in a web browser.
  2. Click on the button representing your choice (rock, paper, or scissors).
  3. The computer will randomly select its choice.
  4. The game will display the result of the round (win, lose, or draw) and update the score.

Project Structure

The project structure is as follows:

.
├── CodeFiles/
│   |── style.css
│   └── script.js
├── index.html
└── README.md
  • The CodeFiles directory contains the style.css file, which contains the CSS styles for the game interface.
  • The CodeFiles directory also contains the script.js file, which contains the JavaScript code responsible for the game's functionality.
  • The index.html file is the main HTML file that displays the game interface.
  • The README.md file provides information about the project.

Customization

You can customize the game's appearance and behavior by modifying the CSS and JavaScript files.

  • To change the visual style, edit the CSS styles in the style.css file.
  • To modify the game's logic or add new features, modify the JavaScript code in the script.js file.

Contributions

Contributions to the project are welcome. If you encounter any issues or have suggestions for improvements, feel free to submit a pull request or open an issue on the project repository.

Acknowledgements

  • This project is a fun implementation of the classic Rock Paper Scissors game.
  • Special thanks to the developers and contributors of the JavaScript, HTML, and CSS programming languages for providing the tools and resources necessary to build this project.

About

Rock paper scissors game is also known as stone paper scissors. It is a hand game that is usually played between 2 people, each player can randomly form any one of three from their hand.

Resources

Stars

Watchers

Forks