ehcodes / rock-paper-scissors-lizard-spock

Home Page:https://ehcodes.github.io/rock-paper-scissors-lizard-spock/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rock, Paper, Scissors, Spock, Lizard!

Link to project: https://ehcodes.github.io/rock-paper-scissors-lizard-spock/

screenshot of calculator

How It's Made:

Tech used: HTML, CSS, and Vanilla Javascript

5 event listeners (one for each button) are used trigger 3 other functions which randomize the bot's weapon selection, check if the bot or user won, and display a message in the DOM informing the user of the results.

Optimizations

I'd make it ES6 compliant instead of vanilla javascript.

Lessons Learned:

Always check carefully for reassignment versus the equal operator.

Examples:

Take a look at all of the rest of my github projects!

About

https://ehcodes.github.io/rock-paper-scissors-lizard-spock/


Languages

Language:JavaScript 52.0%Language:HTML 31.2%Language:CSS 16.8%