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.
- Open the Game: Simply open the
index.htmlfile in your web browser. - Make Your Choice: A pop-up will ask you to choose "rock," "paper," or "scissors." Type your choice and press enter.
- View the Results: The game will display the computer's choice and the result of the round.
- Keep Playing: The game will automatically continue for 5 rounds, after which the final winner will be announced.
- Interactive Gameplay: The game uses
window.promptto 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.
- HTML: For the basic structure of the webpage.
- JavaScript: The core logic of the game, handling all gameplay and scoring.