Skip to content

Welcome to the Rock, Paper, Scissors game! This project is a front-end coding challenge provided by Frontend Mentor to enhance your HTML, CSS, and JavaScript skills.

Notifications You must be signed in to change notification settings

YeiserBytes/rock-paper-scissors

Repository files navigation

Rock, Paper, Scissors Game

Design preview for the Rock, Paper, Scissors coding challenge

Introduction 🎮

Welcome to the Rock, Paper, Scissors game! This project is a front-end coding challenge provided by Frontend Mentor to enhance your HTML, CSS, and JavaScript skills.

Challenge Description 📝

Your challenge is to build a responsive Rock, Paper, Scissors game based on the provided design. You'll implement the game mechanics allowing users to play against the computer. Additionally, there are bonus objectives, including maintaining the score after refreshing the browser and implementing an extended version of the game, Rock, Paper, Scissors, Lizard, Spock.

Features 🎯

  • View the optimal layout for the game depending on their device's screen size.
  • Play Rock, Paper, Scissors against the computer.
  • Bonus: Maintain the state of the score after refreshing the browser.
  • Bonus: Play Rock, Paper, Scissors, Lizard, Spock against the computer.

Game Rules 📜

Original:

  • 📄 Paper beats Rock 🪨
  • 🪨 Rock beats Scissors ✂️
  • ✂️ Scissors beats Paper 📄

Bonus:

  • ✂️ Scissors beats Paper 📄
  • 📄 Paper beats Rock 🪨
  • 🪨 Rock beats Lizard 🦎
  • 🦎 Lizard beats Spock 🖖
  • 🖖 Spock beats Scissors ✂️
  • ✂️ Scissors beats Lizard 🦎
  • 📄 Paper beats Spock 🖖
  • 🪨 Rock beats Scissors ✂️
  • 🦎 Lizard beats Paper 📄
  • 🖖 Spock beats Rock 🪨

Note

For a detailed understanding, refer to The Big Bang Theory clip.

Project Structure 📁

  • /design: Contains design files in JPG format for both original and bonus versions of the game.
  • /public/images: Contains all required assets, already optimized.
  • style-guide.md: Includes design details such as color palette and fonts.

Building & Deployment 🚀

Tip

Install the required dependencies and run the project locally using the following commands:

curl -fsSL https://bun.sh/install | bash # for macOS, Linux, and WSL
powershell -c "irm bun.sh/install.ps1|iex" # for Windows
  1. Clone this repository to your local machine.
  2. Install dependencies using bun install.
  3. Run the project locally using bun dev.
  4. Follow the suggested process outlined in the README to complete the project.

About

Welcome to the Rock, Paper, Scissors game! This project is a front-end coding challenge provided by Frontend Mentor to enhance your HTML, CSS, and JavaScript skills.

Topics

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •