Skip to content

Mooenz/rock-paper-scissors

Repository files navigation

Frontend Mentor - Rock, Paper, Scissors solution

This is a solution to the Rock, Paper, Scissors challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

Overview

The challenge

Users should be able to:

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

Screenshots

Desktop Mobile Desktop bonus Mobile bonus

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties (Tailwind CSS)
  • Flexbox
  • CSS Grid
  • Mobile-first workflow
  • React - JS library
  • TypeScript - For type safety
  • Tailwind CSS - For styling
  • Vite - Build tool
  • Zustand - State management

What I learned

During this project, I learned how to effectively use Zustand for state management in a React application. I also improved my skills in TypeScript by ensuring type safety throughout the codebase. Additionally, I gained experience in implementing responsive designs using Tailwind CSS and handling game logic for Rock, Paper, Scissors, Lizard, Spock.

Author

About

This is a frontend mentor challenge called rock paper scissors done in react, typescript, tailwind and zustand.

Topics

Resources

Stars

Watchers

Forks

Contributors