Skip to content

Mahak-Codes/Rock-Paper-Scissor-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock Paper Scissors Game

Overview

This project is a simple and fun implementation of the classic game "Rock Paper Scissors." The player competes against the computer, with the first to win 3 rounds being declared the winner. The game features score tracking, animations, and a responsive design for desktop and mobile devices.

Features

  • Player vs. Computer: Play against the bot in a series of 3 rounds.
  • Score Tracking: Keeps track of both player and computer scores.
  • Winner Declaration: The game declares a winner after 3 rounds.
  • Reset Button: Restart the game at any point using the reset button.
  • Responsive Design: Fully functional on both desktop and mobile devices.
  • Interactive Animations: Engaging animations for user interaction.

Tech Stack

  • HTML5: Structure of the web page.
  • CSS3: Styling and game animations for a better user experience.
  • JavaScript: Game logic, score tracking, and interactivity.

How to Play

  1. Choose either Rock, Paper, or Scissors.
  2. The computer randomly chooses its option.
  3. The game compares the choices and declares a round winner based on the rules:
    • Rock beats Scissors
    • Scissors beats Paper
    • Paper beats Rock
  4. The first to win 3 rounds is declared the overall winner.
  5. You can reset the game anytime by pressing the "Reset" button.

Project Structure

  • index.html: The HTML file that contains the structure of the game.
  • style.css: The CSS file for the visual design and animations.
  • script.js: The JavaScript file that contains the game logic.

Installation

  1. Clone the repository:
    git clone https://github.com/Mahak-Codes/Rock-Paper-Scissor-Game.git

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published