Rock-paper-scissors-lizard-Spock

Rock-paper-scissors-lizard-Spock is a five-gesture expansion of the classic selection method game rock-paper-scissors. It operates on the same basic principle, but includes two additional weapons: the lizard (formed by the hand as a sock-puppet-like mouth) and Spock (formed by the Star Trek Vulcan salute). This reduces the chances of a round ending in a tie. The game was invented by Sam Kass and Karen Bryla.


The game was mentioned in three episodes of The Big Bang Theory. According to an interview with Kass, the series producers did not ask for permission to use the game, but he was later referenced in an episode in the fifth season.
Rules

The rules of Rock-paper-scissors-lizard-Spock are:
  • 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 
  • Rock crushes scissors 
There are ten possible pairings of the five gestures; each gesture beats two of the other gestures and is beaten by the remaining two.
My implementation of this program in different languages..

Github page for source code in Java, Ruby, Python and C

Comments

Popular posts from this blog

Asteroids game using Python - Pygame module

Euphemisms and Political correctness - the lies we use to shun reality

Creating jokes by violating Grice’s maxims