My solution to the Frontend Mentor "Rock, Paper, Scissors game" challenge
Caution
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.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.
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.
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.
Languages:
- JavaScript
- HTML
- CSS
Libraries and frameworks:
Programs:
- ✅ 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)
-
Use live version.
-
Download this repository and:
- Open project in VSCode
- Run VSCode live server extension
- Or open project in Prepros
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.
The header contains the logo on the left and buttons on the right.
The header contains the logo on the left and buttons on the right.
The header contains the logo on the left and buttons on the right.
The header contains the logo on the left and buttons on the right.