Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Pasek108/FM-RockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

29 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

FM-RockPaperScissors - Readme

My solution to the Frontend Mentor "Rock, Paper, Scissors game" challenge


Caution

Please, don't look at my solutions until you have completed it yourself.

Challenges like these are an opportunity to improve by coming up with your own solutions. Take your time and think about your approach. If you can't complete a challenge, skip it and come back to it later. Only look at someone else's solutions as a last resort, and treat it as a defeat.

Table of Contents


FrontendMentor πŸ€”

What is it

FrontendMentor is a platform that provides real-world front-end coding challenges to help developers improve their skills. It offers projects ranging from simple layouts to complex web applications, allowing users to practice HTML, CSS, and JavaScript by building solutions that closely resemble professional work.

Is it worth doing

Frontend Mentor is a great resource for developers looking to gain hands-on experience by working on practical projects. The challenges help reinforce best practices, improve design implementation skills, and build a portfolio. However, since there is no automated grading system, feedback depends on community reviews, making it essential to engage with others for constructive criticism.


Overview ✨

About

My solution to the Frontend Mentor "Rock, Paper, Scissors game" challenge. This project was built using pure JavaScript and LESS. The logic part was fairly easy, but setting the pick options in a triangular and pentagonal shape was tricky.

Check out the live version of this project, as well as my Frontend Mentor profile.


preview

Technologies

Languages:

  • JavaScript
  • HTML
  • CSS

Libraries and frameworks:

Programs:

Features

Challenge requirements

  • βœ… 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 (optional)
  • βœ… Bonus: Play Rock, Paper, Scissors, Lizard, Spock against the computer (optional)

Setup

Copyright ©️

I do not own the rights to the content of the challenges. All challenge data was downloaded and included only to provide context for the solutions.


Details πŸ“œ

User interface

Header

header
The header displays the current game mode name and the player's points for this mode.


Footer

footer
The footer contains two buttons:

  • Change Game – Switches the game mode.
  • Rules – Displays the rules for the selected game mode.

It also includes an attribution section with links to the challenge and solution authors.


Pick Menu

rock paper scissors pick
rock paper scissors lizard spock pick
The pick menu contains buttons representing the possible choices for the selected game mode. The user must click on one of the options to play.


Result Menu

rock paper scissors result
rock paper scissors lizard spock result
The result menu displays the user's pick and a randomly generated pick by the computer. It highlights the winner of the round and adjusts the points according to the game rules.


Rules

rock paper scissors rules
rock paper scissors lizard spock rules
The rules view shows an image illustrating which picks defeat others.

Performance

Desktop

desktop performance

Mobile

mobile performance

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy