Created
February 13, 2014 14:27
-
-
Save ejmurray/8975915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# 2014-02-12 | |
# this is a python game that I will start from scratch | |
# it is based on a WWE match | |
# most of the ideas will be a conversion of ex32_football.py | |
# TODO: add the six functions for the options. | |
from sys import exit | |
def spear(): | |
print "Maxi. You have never tried this move before except when you have" | |
print "played rugby with Samuel. That isn't the same as being in a ring." | |
print "Anyway, you go for it and run at full speed towards him." | |
print "Your shoulder connects with his belly and you both go flying." | |
print "You land heavily on your shoulder and are in real pain." | |
print "Randy hits the corner back first and is down." | |
print "--------------------------------------------------------------" | |
print "Time for the ten count. Who gets up first?" | |
print "Randy stumbles up but falls again clutching his back. He's hurt." | |
print "--------------------------------------------------------------" | |
print "You get to your feet, but your arm is in real pain." | |
print "The ref is on 8" | |
print "9" | |
print "10" | |
print "The winner by knock out" | |
print "-------------------- Maxwell Murray -------------------------------" | |
print "--------------- Intercontinental Champion -------------------------" | |
print "Would you like to play again? Yes or no?" | |
again = raw_input("> ") | |
if again == "yes": | |
start() | |
else: | |
exit(0) | |
def c_line(): | |
print "Randy runs towards you and you move out of the way," | |
print "but leave your arm out." | |
print "He ducks and bounces off the rope and is coming straight back." | |
print "Do you" | |
print " 1. keep your arm out?" | |
print " 2. Go down and try something?" | |
arm_out = raw_input("> ") | |
if arm_out == "1": | |
print "Randy charges straight at you and hit your arm with his nose." | |
print "He is knocked out and won't be getting up." | |
print "All that work in the gym has paid off. You are the champion." | |
else: | |
print "You get down, trap his feet and he's down face first." | |
print "You trap him in the suplex position. He can't move." | |
print "Randy taps-out. You win!!!!" | |
print "You've gained the Intercontinental Championship belt. Well Done" | |
print "Do you want to play again?" | |
again = raw_input("> ") | |
if again == "yes": | |
start() | |
else: | |
exit(0) | |
def t_paradise(): | |
print "You haven't been practicing this move!!!!" | |
print "Go back to the gym and practice." | |
print "Want to try a different move?" | |
print "1. Spear" | |
print "2. Clothes line" | |
print "4. RKO" | |
print "5. Maxi bomb - A bit like the Batista bomb" | |
next = raw_input("> ") | |
if next == "1": | |
spear() | |
elif next == "2": | |
c_line() | |
elif next == "4": | |
rko() | |
elif next == "5": | |
maxi_bomb() | |
else: | |
print "Enter a number!!!!" | |
def rko(): | |
print "Get to the gym and practice." | |
return | |
def maxi_bomb(): | |
print "You deliver the Shawn Michael's Sweet Chin music to Orton" | |
print "He goes down on the canvas with a heavy fall." | |
print "You run to the corner. Get on the top rope." | |
print "Are you ready to BOMB????" | |
bomb = raw_input("> ") | |
if bomb == "yes": | |
print "You jump high. Sail through the air with arm wide open." | |
print "You sumersault and land on his chest." | |
print "The crowd shout 1. 2. 3." | |
print "It's game over and you Win" | |
print "The referee hands you the belt. You are the new" | |
print "Intercontinental Champion!" | |
print "Maxwell Murray" | |
else: | |
print "You start to wobble on the top rope." | |
print "Orton gets up. You were too slow." | |
print "You fall off and are knocked out" | |
print "You wake up the next day too upset to play." | |
print "Do you want to play again?" | |
again = raw_input("> ") | |
if again == "yes": | |
start() | |
else: | |
exit(0) | |
def scared(): | |
print "Hmmm! Hornswoggle jumps on your back and tells you to get back " | |
print "in the ring." | |
print "You shrug him off and run back to the changing room." | |
print "What a sad way to loose." | |
print "Do you want to play again?" | |
again = raw_input("> ") | |
if again == "yes": | |
start() | |
else: | |
exit(0) | |
def start(): | |
"""This function is used to start the game""" | |
print "You are about to climb in to the ring and take on the WWE champion" | |
print "Randy Orton for the Intercontinental Chamionship belt." | |
print "Your hands are sweaty, but you are ready." | |
print "The crowd boo as Orton enters the ring." | |
print "The bell rings. Chose your first move!!!" | |
print "1. Spear" | |
print "2. Clothes line" | |
print "3. Trouble in paradise - Kofi Kingston taught you that one." | |
print "4. RKO" | |
print "5. Maxi bomb - A bit like the Batista bomb" | |
print "6. You are too scared and run out of the ring!!!" | |
print "Choose a number!" | |
next = raw_input("> ") | |
if next == "1": | |
spear() | |
elif next == "2": | |
c_line() | |
elif next == "3": | |
t_paradise() | |
elif next == "4": | |
rko() | |
elif next == "5": | |
maxi_bomb() | |
elif next == "6": | |
scared() | |
else: | |
print "Enter a number!!!!" | |
start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment