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.
Note: Delete this note and update the table of contents based on what sections you keep.
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
- It's a one time game between 2 players and if you refresh the page the score will turn back to 0
- See My Solution and Live Url
- Solution URL: My Solution here
- Live Site URL: Live Url
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- JavaScript
- SCSS for CSS preprocessor
- Desktop-first workflow
- Gulp for browsersync.
Note: These are just examples. Delete this note and replace the list above with your own choices
This challenge is really great and It's really help me to improve my knowledge in JavaScript and some accessibility for html and making the how to upload properly in github.
To see how you can add code snippets, see below:
<button
data-toggle="choices"
data-type="scissor"
class="playerChoice btn gameboard__game--choices"
aria-label="choose scissor"
></button>
.proud-of-this-css {
color: papayawhip;
}
function proundOfThisFunc() {
console.log('HAHAHAHA');
}
function playerChange() {
playerPick.innerHTML = chooseImg(`${userChoice}`);
playerPick.setAttribute('data-type', `${userChoice}`);
playerPick.setAttribute('data-choice', `${userChoice}`);
playerPick.setAttribute('aria-label', `choose ${userChoice}`);
}
function housePickChange() {
setTimeout(() => {
computerPick.innerHTML = chooseImg(`${computerChoice}`);
computerPick.setAttribute('data-type', `${computerChoice}`);
computerPick.setAttribute('data-choice', `${computerChoice}`);
computerPick.setAttribute('aria-label', `choose ${computerChoice}`);
}, timeOut);
}
}
If you want more help with writing markdown, we'd recommend checking out The Markdown Guide to learn more.
Note: Delete this note and the content within this section and replace with your own learnings.
- Website - Benjo Quilario
- Frontend Mentor - @benjoquilario
- Twitter - @iam_benjo
Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.
My Tips is to use the @use keyword and not do not use import for scss/sass
Note: Delete this note and edit this section's content as necessary. If you completed this challenge by yourself, feel free to delete this section entirely.