It is a simple implementation of rock papaer scissors game form The Odin Project Curriculum
Live Preview ๐ Click Here
- HTML
- CSS
- JavaScript
At first, just wrote the JavaScript where it was able to play completely through the console.
For player pick, prompt function is used to take the input form player.
For computer pick, used random function to pick a num with the help of the number computer pick is decided.
Player pick and Computer pick is compared and gets the result.
After that added Structure(HTML) and CSS to the project.
Reimplemented the JavaScript to interact with the buttons by eventListener to pick the player choice.
Used Dom manipulation methods to change the scoreboard, computer pick etc.
At last found some height issuses in CSS solved it and deployed in gitHub.
Live Preview ๐ Click Here