An open API service indexing awesome lists of open source software.

https://github.com/ryantusi/rock_paper_scissors

This is a Rock Paper Scissors game built with React. It's a simple project to practice and demonstrate fundamental React concepts, including state management and component-based architecture.
https://github.com/ryantusi/rock_paper_scissors

game nodejs react rock-paper-scissors

Last synced: 3 months ago
JSON representation

This is a Rock Paper Scissors game built with React. It's a simple project to practice and demonstrate fundamental React concepts, including state management and component-based architecture.

Awesome Lists containing this project

README

          

# đŸĒ¨đŸ“„âœ‚ī¸ Rock Paper Scissors

This is a **Rock Paper Scissors** game built with **React**. It's a simple project to practice and demonstrate fundamental React concepts, including **state management** and **component-based architecture**.

-----

## 🚀 Features

* **Play against the computer**: The game logic handles a random choice for the computer's move.
* **Real-time score tracking**: The score updates instantly after each round.
* **Clean and simple UI**: A straightforward interface lets you focus on the game.
* **One-component structure**: The entire game is contained within a single `Game.js` component to showcase basic state and props handling.

-----

## đŸ› ī¸ Tech Stack

* **Frontend**: React

-----

## 📂 Project Structure

```
rock-paper-scissors/
│
├── src/
│ ├── components/
│ │ └── Game.js # The main game component
│ ├── App.css
│ ├── App.js
│ ├── index.css
│ └── index.js
│
├── .gitignore
├── package.json
└── README.md
```

-----

## âš™ī¸ Installation & Setup

### 1ī¸âƒŖ Clone the repository

```bash
git clone https://github.com/your-username/rock-paper-scissors.git
cd rock-paper-scissors
```

### 2ī¸âƒŖ Install dependencies

```bash
npm install
```

### 3ī¸âƒŖ Run the app

```bash
npm start
```

The game should now be running at `http://localhost:3000`.

-----

## đŸ•šī¸ How to Play

1. Click one of the buttons: **Rock**, **Paper**, or **Scissors**.
2. The computer will make its move.
3. The winner of the round will be displayed, and the score will be updated.
4. Keep playing to see who wins the most rounds\!