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

https://github.com/darshanas17/emoji-game-react

An engaging Emoji Game built using React.js, where users can test their memory by selecting unique emojis without repeating.
https://github.com/darshanas17/emoji-game-react

css es6-modules game hmtl javascript reactjs state-management

Last synced: 2 months ago
JSON representation

An engaging Emoji Game built using React.js, where users can test their memory by selecting unique emojis without repeating.

Awesome Lists containing this project

README

          

# Emoji Game

An engaging **Emoji Game** built using React.js, where users can test their memory by selecting unique emojis without repeating.

## 🚀 Live Demo

[Click Here to View the App](https://Darshanas17.github.io/Emoji-Game-React)

## 📸 Preview

![Emoji Game Output](https://assets.ccbp.in/frontend/content/react-js/emoji-game-output-v2.gif)

---

## 🎯 Features

- **Memory-Based Gameplay:** Click unique emojis to increase score
- **Win/Lose Logic:** Winning and losing screens based on selections
- **Top Score Tracking:** Highest score is recorded for future attempts

---

## 🛠️ Installation & Setup

1. Clone the repository:
```sh
git clone https://github.com/Darshanas17/Emoji-Game-React.git
cd Emoji-Game-React
```
2. Install dependencies:
```sh
npm install
```
3. Start the development server:
```sh
npm start
```
4. Open the browser and go to `http://localhost:3000` to view the app.

---

## 📝 Implementation Details

### **Technologies Used**

- React.js
- CSS (for styling)
- JavaScript (ES6+)

### **File Structure**

```
├── src
│ ├── components
│ │ ├── EmojiGame
│ │ │ ├── index.js
│ │ │ ├── index.css
│ │ ├── NavBar
│ │ │ ├── index.js
│ │ │ ├── index.css
│ │ ├── EmojiCard
│ │ │ ├── index.js
│ │ │ ├── index.css
│ │ ├── WinOrLoseCard
│ │ │ ├── index.js
│ │ │ ├── index.css
│ ├── App.js
│ ├── index.js
├── package.json
```

---

## 🎮 How to Play?

1. Click on an emoji to score a point
2. Avoid clicking the same emoji twice
3. If all emojis are clicked once, you win!
4. If a duplicate emoji is clicked, you lose
5. Track and beat your **Top Score**

---

## 📂 Resources

### **Colors Used**

- `#6a59ff` (Primary)
- `#ffffff` (White)
- `#3d3d3d` (Dark Grey)
- `#ffce27` (Yellow)

---

## 📜 License

This project is licensed under the **MIT License**.

---

## 🤝 Contributing

Feel free to fork and contribute to this project.

1. Fork the repository
2. Create a new branch (`feature/your-feature`)
3. Commit your changes
4. Push to the branch
5. Open a Pull Request