Skip to content

Ajkouva/rockPaperScissorsRepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

This is a simple Rock Paper Scissors game built with HTML, CSS, and JavaScript. The game allows the user to play against the computer, where both the player and the computer choose between "Rock", "Paper", or "Scissors." The results are displayed along with the score updates.

Features:

  • Play against the computer with three choices: Rock, Paper, or Scissors.
  • Dynamic score tracking for the player and the computer (Wins, Losses, Draws).
  • Simple and clean user interface with interactive buttons.
  • Real-time updates for the game result and score.

Technologies Used:

  • HTML: Structure and layout of the page.
  • CSS: Styling for the buttons, score, and game results.
  • JavaScript: Handles the game logic, user input, and score updates.

How to Play:

  1. Click on one of the buttons: "Rock", "Paper", or "Scissors".
  2. The computer will randomly pick one of the choices as well.
  3. The game result will be displayed, showing whether you won, lost, or drew.
  4. Your score, as well as the computer's score, will be updated after each round.

Game Rules:

  • Rock beats Scissors.
  • Scissors beats Paper.
  • Paper beats Rock.
  • If both the player and the computer choose the same option, it’s a draw.

How to Run the Game:

  1. Download or clone the repository.
  2. Open the index.html file in your web browser.
  3. Enjoy playing the game!

File Structure:

/rock-paper-scissors-game
├── index.html         # Main HTML file
├── rockpaper_2.css    # Stylesheet for the game
├── rockpaper_2.js     # JavaScript file containing game logic

Example of Game Flow:

  1. You pick Rock.
  2. The computer picks Scissors.
  3. The result shows: You win!
  4. The score is updated: Player Win = 1 | Computer Win = 0 | Draws = 0.

Future Improvements:

Soon!!


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published