Advertisement
Guest User

What would Brian Boitano do?

a guest
Oct 27th, 2012
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.84 KB | None | 0 0
  1. import random
  2. import threading
  3. import sys
  4.  
  5. def thisistheshit(signum, frame):
  6.     print("YOU TOOK TOO LONG!")
  7.     sys.stdin.write("\r")
  8.  
  9. class dude:
  10.     name=""
  11.     desc=0
  12.    
  13.     def __init__(self, desc, name):
  14.         self.name=name
  15.         self.desc=desc
  16.  
  17. descriptor=[
  18.             ["Two-Assed", "kick an ass or two", "That's what Brian Boitano'd do!"],
  19.             ["Evil Robot King", "travel through time to the year 3010", "You saved the human race, again!"],
  20.             ["Grizzly Bear", "use my magical fire breath", "You saved the maidens fair!"],
  21.             ["Kubela Kong", "build the pyramids", "Cos you doesn't take shit from aneybody"],
  22.             ["Figure Skater", "do two sow cows and a triple lutz", "You won the gold medal!"],
  23.             ]
  24.  
  25. names=["Annie", "Jackson", "SteelRaven7", "Kubel Kong", "Antimony", "Buttlord", "Donkey Kong", "Peter Quite Contrare", "THe Very best of", "Hamelt", "Merlin", "Teen Witch Mary", "Josephine Peristalsis"]
  26.  
  27.  
  28. print("You are Brian Boitano, and you must do what Brian Boitano would do if he were here right now")
  29. lives=3
  30. score=0
  31. time=30.0
  32. while lives>0:
  33.         print("\nYou have "+str(time)+ " to do what Brain Boitano would do")
  34.         print("Your gold: $"+str(score))
  35.         fightdude = dude(random.randint(0,len(descriptor)-1), names[random.randint(0, len(names)-1)])
  36.         print("You are faced with "+fightdude.name+" the "+str(descriptor[fightdude.desc][0]))
  37.         if(input("What do: ")!=descriptor[fightdude.desc][1]):
  38.             print("You died a life!")
  39.             lives-=1
  40.         else:
  41.             print(descriptor[fightdude.desc][2])
  42.             scro=1000+random.randint(0, 1000)
  43.             print("You got $"+str(scro)+" gold!")
  44.             score+=scro
  45.             time=time*0.9
  46. print("\n====YOU DIED ALL YOUR LIFES====\n")
  47. print("Final Scoregold: $"+str(score))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement