Skip to content

Ed-A/RockPaperScissors

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 implementation of the classic Rock-Paper-Scissors game. The game is controlled by key presses and allows you to play against the computer. The scoreboard updates after each round, tracking both your wins and the computer's wins.

Features

  • Play Rock-Paper-Scissors by pressing keys 1 (Rock), 2 (Paper), or 3 (Scissors).
  • Computer randomly selects Rock, Paper, or Scissors each round.
  • Tracks wins for both the player and the computer.
  • Displays a result for each round: win, lose, or draw.
  • Option to reset the game by pressing 0.

How to Play

  1. Open the webpage.
  2. Use the following keys to make your choice:
    • 1 for Rock
    • 2 for Paper
    • 3 for Scissors
  3. The computer will randomly select its choice, and the result (win/lose/draw) will be displayed.
  4. Your score and the computer's score will be updated after each round.
  5. Press 0 to reset the game.

Files

  • index.html: The main HTML structure for the game.
  • style.css: Contains the styling for the game interface.
  • script.js: Handles the game logic (key press events, game outcome, and scoreboard updates).

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/rock-paper-scissors.git
  2. Open index.html in your browser to start playing the game.

Contributions

Feel free to open issues or submit pull requests if you'd like to improve the project!

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors