Skip to content

Instantly share code, notes, and snippets.

@waspyfaeleith
Last active April 21, 2017 09:39
Show Gist options
  • Save waspyfaeleith/19c66d86147cc76c7707 to your computer and use it in GitHub Desktop.
Save waspyfaeleith/19c66d86147cc76c7707 to your computer and use it in GitHub Desktop.
Rock, Paper, Scissors, Lizard, Spock

Rock, Paper, Scissors, Lizard, Spock

Tonight's homework is to create the Rock, Paper, Scissors, Lizard, Spock game in JavaScript/jQuery, where you play one-v-one against the computer.

The game is an expansion on the game Rock, Paper, Scissors. Each player picks a variable and reveals it at the same time. The winner is the one who defeats the others. In a tie, the process is repeated until a winner is found.

Rules for Winning the Game

Scissors cuts Paper

Paper covers Rock

Rock crushes Lizard

Lizard poisons Spock

Spock smashes Scissors

Scissors decapitates Lizard

Lizard eats Paper

Paper disproves Spock

Spock vaporizes Rock

(and as it always has) Rock crushes scissors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment