YeiserBytes / rock-paper-scissors

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.

Home Page:https://rock-paper-scissors-ivory-chi.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://rock-paper-scissors-ivory-chi.vercel.app/


Languages

Language:TypeScript 95.2%Language:JavaScript 3.5%Language:HTML 0.8%Language:CSS 0.5%