Skip to content

Instantly share code, notes, and snippets.

@ejmurray
Created February 13, 2014 08:05
Show Gist options
  • Save ejmurray/8971480 to your computer and use it in GitHub Desktop.
Save ejmurray/8971480 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# 2014-01-31
# this is a python game that I will start from scratch
# it is based on a penalty shoot out, but it could be modified
# to be a wwe game for Max!!!!!
print "You are about to take part in a penalty shoot out."
print "You step up to the spot and place the ball."
print "The keeper is looking at you and then smiles!!!"
print "Which of the following do you do?"
print "#1 look to the left post?"
print "#2 look to the right ?"
print "#3 look at the keeper"
the_spot = raw_input("> ")
if the_spot == "1":
print "You spot two objects in that corner. Choose your spot."
print "1. A water bottle."
print "2. A towel on the crossbar."
water_towel = raw_input("> ")
if water_towel == "1":
print "MISS!!! You hit the post!"
elif water_towel == "2":
print "GOAL!!! Sweet shot. It just squeezes in the top left."
else:
print "The ref blows his whistle because you are time wasting."
elif the_spot == "2":
print "There is a ball boy just behind the post. I can\'t hit him!"
print "1. Should I go for the bottom right corner?"
print "2. Should I go for the top right corner?"
right_post = raw_input("> ")
if right_post == "1":
print "GOAL!!! You hit it hard an low with some curl. Well done!"
elif right_post == "2":
print "Too much power and leaning back. You hit row Z"
print "The fans jeer and your team-mates look away embarassed!!"
else:
print "The captain moves you aside, takes it and scores."
print "Make your mind up a bit quicker next time."
print "That is if you get another chance!"
elif the_spot == "3":
print "Time to be creative!!!!"
print "What are the options?"
print "1. Hard and low?"
print "2. Dink it over the keeper Thierry Henry style?"
print "3. Boom!!! High and hard?"
middle_goal = raw_input("> ")
if middle_goal == "1":
print "MISS!!! The keeper didn't even have to move to save that one."
print "Better luck next time!!!!"
elif middle_goal == "2":
print "GOAL!!!! Superb technique. You made the keeper look silly."
print "Time for a team pile-on!!!!"
elif middle_goal == "3":
print "Phil Jones tried that and had the same outcome. You missed!!!"
else:
print "GOAL!!! You slip as you run up and still score. You are lucky!"
else:
print "You were substituted from the field for not picking a spot!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment