Here’s an updated version of your README file for the Rock Paper Scissors project, reflecting the changes made to implement a UI and update the game logic:
Welcome to the Rock Paper Scissors Project! This project is a simple web-based implementation of a Rock, Paper, Scissors game, created as part of the Odin Project curriculum. The game allows players to interact via buttons on a webpage rather than through console prompts.
The project now includes the following files:
index.html
: The HTML file that serves as the entry point for the web page.index.js
: The JavaScript file that contains the updated logic for the Rock, Paper, Scissors game with UI interaction.
- Presents a UI with buttons for Rock, Paper, and Scissors.
- Dynamically updates the result and score display on the webpage.
- Removes the console-based interaction and replaces it with event-driven button clicks.
- Tracks scores and declares a winner once one player reaches 5 points.
- A web browser (Google Chrome, Firefox, Safari, etc.)
-
Clone the repository:
git clone https://github.com/your-username/Rock-Paper-Scissors.git cd Rock-Paper-Scissors
- Open
index.html
in your preferred web browser. - Click on the buttons for Rock, Paper, or Scissors to play a round.
- The game will display the result of each round and update the score dynamically.
- Continue playing until one player reaches 5 points, which will declare them as the winner.
- Christopher Njihia
- This project was inspired by The Odin Project.