Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Rock-Paper-scissors game

Lamba 370

@lamba01

Desktop design screenshot for the Rock, Paper, Scissors game coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
4advanced
View challenge

Design comparison


SolutionDesign

Solution retrospective


If anyone could put me through the functionality of the play again button without having to reload the webpage.

Community feedback

Herman 210

@hqz3

Posted

Hello, regarding your question about how to continue playing the game without reloading the webpage, if I'm reading your code correctly, there is a game-body element and a selection element. You hide the game-body when the user makes a choice and then show the selection. So when the user chooses to play again, you have use JS to hide the selection element and show the game-body element.

A heuristic for creating these elements is to treat them as modular blocks that you can either show or hide using CSS or simply attach or remove from the DOM using JavaScript.

Marked as helpful

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord