Ya habiendo resuelto Rock, Paper, Scissors Game, tomé ese desarrollo como base y le implementé cambios para que se adapte a esta nueva versión. Mediante un botón, el usuario puede elegir bajo que modalidad jugar. El framework que elegí para realizar este challenge es React y su programación modular me sirvió para lograr un mejor manejo de cada elemento. Para los estilos decidí usar Styled-Components y Regular Css. Generalemnte utilizando styled components para los wrapes o diseños específicos y para el resto CSS. Ese mix me permite tener un mejor control sobre el programa desde el browser y además priorizar su mantenibilidad.
Thanks for checking out this front-end coding challenge.
Frontend Mentor challenges allow you to improve your skills in a real-life workflow.
Your challenge is to build out this Rock, Paper, Scissors game and get it looking as close to the design as possible.
You can use any tools you like to help you complete the challenge. So if you've got something you'd like to practice, feel free to give it a go.
Your 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 Play Rock, Paper, Scissors, Lizard, Spock against the computer
If the player wins, they gain 1 point. If the computer wins, the player loses one point.
- Paper beats Rock
- Rock beats Scissors
- Scissors beats Paper
- 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
Not sure what Rock, Paper, Scissors, Lizard, Spock is? Check out this clip from The Big Bang Theory.
Want some support on the challenge? Join our Slack community and ask questions in the #help channel.
Your task is to build out the project to the designs inside the /design
folder. You can either choose the original
designs for the simpler version or the bonus
designs for the harder version. You will find both mobile and desktop versions of the design to work to. Each file is also named depending on which step in the game the design is for.
The designs are in JPG static format. This will mean that you'll need to use your best judgment for styles such as font-size
, padding
and margin
. This should help train your eye to perceive differences in spacings and sizes.
If you would like the Sketch file in order to inspect the design in more detail it is available to purchase here.
You will find all the required assets in the /images
folder. The assets are already optimized.
There is also a style-guide.md
file, which contains the information you'll need, such as color palette and fonts.