Skip to content

Instantly share code, notes, and snippets.

@robboggs
robboggs / lizard_spock
Created September 22, 2014 00:58
Rock, paper, scissor, lizard, spock game for a treehouse.com contest.
import random
# Welcome Message Only shown Once.
print("Welcome to Rock, Paper, Scissors, Lizard, Spock.\nA twist on the game made famous by the\ntv show \'The Big Bang Theory\'.\nOnly use the first letter except for spock. Use the last letter \"k\"\n")
# Function to provide help about what beats what
def help():
print("\nRock crushes Scissors and Lizard\nPaper covers Rock and disproves Spock\nScissors cut Paper and decapitate Lizard\nLizard eats paper and poisons Spock\nSpock vaporizes Rock and crushes Scissors\n")
# Main function. written as function to be called over and over again