https://github.com/b-l-u-e/rock-paper-scissors-game
Built rock paper scissors game using HTML,CSS and JavaScript
https://github.com/b-l-u-e/rock-paper-scissors-game
css-flex html-css-js
Last synced: 3 months ago
JSON representation
Built rock paper scissors game using HTML,CSS and JavaScript
- Host: GitHub
- URL: https://github.com/b-l-u-e/rock-paper-scissors-game
- Owner: b-l-u-e
- Created: 2021-08-25T22:18:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-27T11:26:26.000Z (over 4 years ago)
- Last Synced: 2024-12-30T02:51:29.905Z (over 1 year ago)
- Topics: css-flex, html-css-js
- Language: CSS
- Homepage: https://stoic-lamarr-0af9b3.netlify.app/
- Size: 96.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Rock, Paper, Scissors
### plan
- create the boxes for how it looks like
- create the rock, paper and scissors buttons
- create the view of contest(results)
- create onclick event for the rock paper scissors
- when clicking the button need to hide the buttons and show the winner
- figure out what the computer is gonna pick
- compare the results and figure out who wins
## Table of contents
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Links](#links)
- [Plan](#plan)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Useful resources](#useful-resources)
- [Author](#author)
## Overview
### The challenge
The challenge was to build the Rock, pair and scissors using HTML, CSS and Javascript
Users will be able to:
- View the optimal layout depending on their device's screen size
### Links
- Live Site URL: [rock pair scissors](https://stoic-lamarr-0af9b3.netlify.app)
## plan
- create the boxes for how it looks like
- create the rock, paper and scissors buttons
- create the view of contest(results)
- create onclick event for the rock paper scissors
- when clicking the button need to hide the buttons and show the winner
- figure out what the computer is gonna pick
- compare the results and figure out who wins
### Built with
- CSS custom properties
- Flexbox
- Javascript
### What I learned
Recap over some of my major learnings while working through this project.
- Box-sizing
- use of max-width and max-height
- CSS Flexbox
- use of media queries
- defining and reuse variables in stylesheet to avoid redundancy in the code.
- Javascript(arrow functions, DOM manipulation )
### Continued development
Areas that i want to continue focusing on in future projects.
- CSS grid
- Max-height and max width
- Media queries
- CSS Transform and animation properties
- CSS Gradients
- CSS Position
- ES6 Javascript
### Useful resources
- [CSS Documentation](https://www.w3schools.com/css/) - This helped me how to handle div containers and style them. I really liked this pattern and will use it going forward.
- [CSS Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) - This is an amazing article which helped me finally understand CSS Flexbox. I'd recommend it to anyone still learning this concept.
## Author
- Frontend Mentor - [@b-l-u-e](https://www.frontendmentor.io/profile/b-l-u-e)