Created
October 15, 2014 01:59
-
-
Save CernerJT/c2bf3ff01854ac90ff3a to your computer and use it in GitHub Desktop.
I want to be the best. Like no one ever was...
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
# Sorry... This was the first thing I thought of when I was trying to figure | |
# out how to capture Engineering Health in code... :D | |
import sys | |
import random | |
print("A wild Engineering Health has appeared!") | |
print("Magikarp! Go get 'em!") | |
while 1==1: | |
print("1. Fight\r\n2. Item\r\n3. PKMN\r\n4. Run") | |
choice=sys.stdin.readline().rstrip() | |
if choice == "1": | |
print("Magikarp performed splash! It's not very effective...") | |
elif choice == "2": | |
print("1. Pokéball\r\n2. Back") | |
item = sys.stdin.readline().rstrip() | |
if item == "1": | |
print("You throw a Pokéball...") | |
captured = random.randrange(0, 2) | |
if captured == 1: | |
print("YOU'VE CAPTURED ENGINEERING HEALTH!!!") | |
print("Thanks for playing. You are the very best. Like no one ever was..."); | |
break | |
else: | |
print("But it broke free!") | |
elif choice == "3": | |
print("You have no more Pokémon."); | |
else: | |
print("There's no running from Engineering Health!") | |
print ("Engineering Health does Thunder Wave! Magikarp is paralyzed!") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment