Giter Club home page Giter Club logo

rock-paper-scissors's Introduction

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:


Rock Paper Scissors

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.

Project Structure

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.

Updated Features

  • 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.

Getting Started

Prerequisites

  • A web browser (Google Chrome, Firefox, Safari, etc.)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/Rock-Paper-Scissors.git
    cd Rock-Paper-Scissors

Usage

  1. Open index.html in your preferred web browser.
  2. Click on the buttons for Rock, Paper, or Scissors to play a round.
  3. The game will display the result of each round and update the score dynamically.
  4. Continue playing until one player reaches 5 points, which will declare them as the winner.

Author

  • Christopher Njihia

Acknowledgments

rock-paper-scissors's People

Contributors

crnjihia avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.