Skip to content

404soul24/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Rock-Paper-Scissors Game

A simple and classic Rock-Paper-Scissors game built with JavaScript, and HTML. This project was created to practice fundamental programming concepts, including functions, control flow, and user interaction.


🚀 How to Play

  1. Open the Game: Simply open the index.html file in your web browser.
  2. Make Your Choice: A pop-up will ask you to choose "rock," "paper," or "scissors." Type your choice and press enter.
  3. View the Results: The game will display the computer's choice and the result of the round.
  4. Keep Playing: The game will automatically continue for 5 rounds, after which the final winner will be announced.

✨ Features

  • Interactive Gameplay: The game uses window.prompt to get user input for each round.
  • Score Tracking: Keeps a running tally of the human and computer scores.
  • Final Winner: After 5 rounds, the game declares a final winner based on the total score.
  • Input Validation: The game prompts the user again if they enter an invalid choice.

🛠️ Built With

  • HTML: For the basic structure of the webpage.
  • JavaScript: The core logic of the game, handling all gameplay and scoring.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published