Skip to content

Instantly share code, notes, and snippets.

@DMahjoob
Created January 24, 2021 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DMahjoob/4baaba7479258002a1ea2f31d658e808 to your computer and use it in GitHub Desktop.
Save DMahjoob/4baaba7479258002a1ea2f31d658e808 to your computer and use it in GitHub Desktop.
import random
class Monster:
def __init__(self, name, enemy_pokemon, element, abilities, height, weight, evolution, strong, weak, immune, move1, move2, move3, move4, enemy_move1, enemy_move2, enemy_move3, enemy_move4, enemy_pokemon_level):
self.name = name
self.enemy_pokemon = enemy_pokemon
self.element = element
self.abilities = abilities
self.height = height
self.weight = weight
self.evolution = evolution
self.strong = strong
self.weak = weak
self.immune = immune
self.move1 = move1
self.move2 = move2
self.move3 = move3
self.move4 = move4
self.enemy_move1 = enemy_move1
self.enemy_move2 = enemy_move2
self.enemy_move3 = enemy_move3
self.enemy_move4 = enemy_move4
self.enemy_pokemon_level = enemy_pokemon_level
def say_name(self):
print("This pokemon is called " + pokedex_input + ".")
def say_type(self):
print("It is a " + self.element + " type.")
def say_abilities(self):
print("Its abilities are: " + self.abilities +" ")
def say_height(self):
print("It is " + self.height + " tall.")
def say_weight(self):
print("It weighs " + self.weight + ".")
def say_evolution(self):
print("It is a " + self.evolution + ".")
def say_strong(self):
print("The types it is strong against are: " + self.strong + ".")
def say_weak(self):
print("The types it is weak against are: " + self.weak + ".")
def say_immune(self):
print("The types it is immune to are: " + self.immune + ".")
def main(self):
pokemon_level = 5
input("You have been challenged by " + self.name + "!")
print("Your enemy sent out " + self.enemy_pokemon + ".")
print(self.enemy_pokemon + " is level " + self.enemy_pokemon_level)
print("You have sent " + pokemon + " out to battle!")
print(pokemon + " is level " + str(pokemon_level))
#battle(user_pokemon, enemy_pokemon)
pokemon_health = 30
enemy_health = 30
fight = True
while fight == True:
print(pokemon,"has four attacks: 1. " + self.move1 + ", 2. " + self.move2 + ", 3. " + self.move3 + ", or 4. " + self.move4 + ".")
fight = int(input("Which one do you want to select?(Type 1, 2, 3, 4)"))
crit = random.randint(1,10)
if fight == 1:
if crit == 9:
enemy_health = enemy_health - 10
print(pokemon + " used " + self.move1 + "!")
print("It is a critical hit!")
print(self.enemy_pokemon + " lost 10 health points!")
enemyfight = random.randint(1,5)
else:
enemy_health = enemy_health - 5
print(pokemon + " used " + self.move1 + "!")
if crit == 8:
print(self.enemy_pokemon + " evaded the attack!")
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
else:
print(self.enemy_pokemon + " lost 5 health points!")
enemyfight = random.randint(1,5)
if enemyfight == 1:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 2:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 3:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 4:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 5:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print(pokemon + " evaded the attack!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif fight == 2:
if crit == 9:
enemy_health = enemy_health - 0
print(pokemon + " used " + self.move2 + "!")
print("It is a critical hit!")
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
else:
enemy_health = enemy_health - 0
print(pokemon + " used " + self.move2 + "!")
if crit == 8:
print(self.enemy_pokemon + " evaded the attack!")
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
else:
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
if enemyfight == 1:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 2:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 3:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 4:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 5:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print(pokemon + " evaded the attack!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif fight == 3:
if crit == 9:
enemy_health = enemy_health - 10
print(pokemon + " used " + self.move3 + "!")
print("It is a critical hit!")
print(self.enemy_pokemon + " lost 10 health points!")
enemyfight = random.randint(1,5)
else:
enemy_health = enemy_health - 5
print(pokemon + " used " + self.move3 + "!")
if crit == 8:
print(self.enemy_pokemon + " evaded the attack!")
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
else:
print(self.enemy_pokemon + " lost 5 health points!")
enemyfight = random.randint(1,5)
if enemyfight == 1:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 2:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 3:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 4:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 5:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print(pokemon + " evaded the attack!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif fight == 4:
if crit == 9:
enemy_health = enemy_health - 15
print(pokemon + " used " + self.move4 + "!")
print("It is a critical hit!")
print(self.enemy_pokemon + " lost 15 health points!")
enemyfight = random.randint(1,5)
else:
enemy_health = enemy_health - 10
print(pokemon + " used " + self.move4 + "!")
if crit == 8:
print(self.enemy_pokemon + " evaded the attack!")
print(self.enemy_pokemon + " lost no health points!")
enemyfight = random.randint(1,5)
else:
print(self.enemy_pokemon + " lost 10 health points!")
enemyfight = random.randint(1,5)
if enemyfight == 1:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move1 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 2:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move2 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 3:
if crit == 7:
pokemon_health = pokemon_health - 10
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print("It is a critical hit!")
print(pokemon + " lost 10 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 5
print(self.enemy_pokemon + " used " + self.enemy_move3 + "!")
print(pokemon + " lost 5 health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 4:
if crit == 7:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print("It is a critical hit!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
elif enemyfight == 5:
pokemon_health = pokemon_health - 0
print(self.enemy_pokemon + " used " + self.enemy_move4 + "!")
print(pokemon + " evaded the attack!")
print(pokemon + " lost no health points!")
print("Your pokemon's current health points are:")
print(pokemon_health)
print("Your enemy's pokemon's health points are:")
print(enemy_health)
else:
print("That is not an attack. Try again.")
if pokemon_health <= 0:
fight = False
elif enemy_health <= 0:
fight = False
print(pokemon + " gained " + str(exp) + " experience points!")
if exp >= 100:
pokemon_level = pokemon_level + 1
print(pokemon + " has leveled up!")
print(pokemon + " is now level " + str(pokemon_level))
else:
print(pokemon + " needs " + str(100 - exp) + " more experience points to level up. ")
else:
fight = True
### CLIENT CODE ####
#Welcome Player into Game
input("Professor: Hello there! (Press Enter to Continue)")
input("Professor: Welcome to the world of Pokemon! (Press Enter to Continue)")
input("Professor: My name is Professor Fir Fraser. But you can call me Fir. We live in a world with people and pokemon alike.(Keep Pressing Enter)")
input("Professor: We become friends with our pokemon and they help us in battle.")
print("Professor: Enough about me.")
player = input("What is your name? (Enter your name)")
#Input name
if len(player) > 0 and len(player) < 11:
input(player + ", that's a nice name")
else:
while len(player) == 0 or len(player) > 11:
print("Professor: I am sorry, could you repeat that?")
player = input("What is your name? (Enter your name)")
gender = str(input("Professor: So, " + player + ", are you male or female (Type male or female)?"))
if gender == 'male':
print("Professor: Ahh... So you are a boy.")
elif gender == 'female':
print("Professor: Ahh... So you are a girl.")
else:
while gender != 'male' and gender != 'female':
print("Professor: I am sorry, I did not quite catch that.")
gender = str(input("Professor: Are you male or female (Type male or female)?"))
if gender == 'male':
print("Professor: Ahh... So you are a boy.")
elif gender == 'female':
print("Professor: Ahh... So you are a girl.")
friend = str(input("Professor: This person is your friend right? What was his name again? (Input your friend's name)"))
if len(friend) > 0 and len(friend) < 11:
input("Professor: " + friend + "... so that is his name.")
else:
while len(friend) == 0 or len(friend) > 11:
print("Professor: I am sorry, could you repeat that?")
friend = str(input("Professor: This person is your friend right? What was his name again? (Input your friend's name)"))
input("Professor: I will be off now, make sure to come to my pokemon lab in Rounter Town.")
print(" ~")
print(" ~")
print(" ~")
print(" ~")
print(" ~")
#Starter Arc
input("Mom: Hi " + player + "! I'm home.")
input("Mom: The professor wanted you to come to his lab.")
lab = str(input("Mom: Do you know how to get there? (Type yes or no)"))
if lab == 'no':
input("Mom: When you go outside, turn right and keep walking. You couldn't miss it! The lab is a large white building.")
elif lab == 'yes':
input("Mom: Ok, have fun!")
else:
while lab != 'no' and lab != 'yes' and lab !='nah' and lab != 'yeet' and lab != 'yeah' and lab != 'YES' and lab != 'ofc' and lab != 'naw':
print("Mom: I am sorry, I did not quite catch that.")
lab = str(input("Mom: Do you know how to get there? (Type yes or no)"))
if lab == 'no':
input("Mom: When you go outside, turn right and keep walking. You couldn't miss it! The lab is a large white building.")
elif lab == 'yes':
input("Mom: Ok, have fun!")
elif lab == 'yeet':
input("Mom: Ok, have fun!")
elif lab == 'yeah':
input("Mom: Ok, have fun!")
elif lab == 'YES':
input("Mom: Ok, have fun!")
elif lab == 'YEET':
input("Mom: Ok, have fun!")
elif lab == 'ofc':
input("Mom: Ok, have fun!")
elif lab == 'naw':
input("Mom: When you go outside, turn right and keep walking. You couldn't miss it! The lab is a large white building.")
elif lab == 'nah':
input("Mom: When you go outside, turn right and keep walking. You couldn't miss it! The lab is a large white building.")
print(" ~")
print(" ~")
print(" ~")
print(" ~")
print(" ~")
input("Ahh! Hello there " + player + "!")
input("I assume you have come to receive your pokemon?")
input("Great! If you follow me to the back of the lab, I have 15 pokemon for you to choose from.")
input("You can only choose one I'm afraid. So make sure to choose wisely!")
type1 = str(input("There are three typings to choose from. Fire, Water, or Grass. Please input one of those types to choose your pokemon. (Make sure to capitalize the first letter)"))
if type1 != 'Fire' and type1 != 'Water' and type1 != 'Grass':
if type1 != 'Fire' and type1 != 'Water' and type1 != 'Grass':
while type1 != 'Fire' and type1 != 'Water' and type1 != 'Grass':
print("I am sorry, I did not catch that.")
type1 = str(input("There are three typings to choose from. Fire, Water, or Grass. Please input one of those types to choose your pokemon. (Make sure to capitalize the first letter)"))
if type1 == 'Fire' or type1 == 'fire':
input("I see. You would like to select a Fire type.")
print("I have 5 different pokemon for you to select from:")
typeFIRE = str(input("Charmander, Cyndaquil, Torchic, Chimchar, or Tepig. (Type in one of the pokemon's names exactly as shown here."))
pokemon = typeFIRE
starter_move = 'Ember'
if typeFIRE == 'Charmander' or typeFIRE == 'charmander':
input("Ahh so you would like to choose Charmander.")
elif typeFIRE == 'Cyndaquil' or typeFIRE == 'cyndaquil':
input("Ahh so you would like to choose Cyndaquil.")
elif typeFIRE == 'Torchic' or typeFIRE == 'torchic':
input("Ahh so you would like to choose Torchic.")
elif typeFIRE == 'Chimchar' or typeFIRE == 'chimchar':
input("Ahh so you would like to choose Chimchar.")
elif typeFIRE == 'Tepig' or typeFIRE == 'tepig':
input("Ahh so you would like to choose Tepig.")
else:
while typeFIRE != 'Charmander' and typeFIRE != 'Cyndaquil' and typeFIRE != 'Torchic' and typeFIRE != 'Chimchar' and typeFIRE != 'Tepig' and typeFIRE != 'charmander' and typeFIRE != 'cyndaquil' and typeFIRE != 'torchic' and typeFIRE != 'chimchar' and typeFIRE != 'tepig':
print("Professor: I am sorry, I did not quite catch that.")
typeFIRE = str(input("Charmander, Cyndaquil, Torchic, Chimchar, or Tepig. (Type in one of the pokemon's names exactly as shown here."))
elif type1 == 'Water' or type1 == 'water':
input("I see. You would like to select a Water type.")
print("I have 5 different pokemon for you to select from:")
typeWATER = str(input("Squirtle, Totodile, Mudkip, Piplup, or Oshawott. (Type in one of the pokemon's names exactly as shown here.)"))
pokemon = typeWATER
starter_move = 'Bubble'
if typeWATER == 'Squirtle' or typeWATER == 'squirtle':
input("Ahh so you would like to choose Squirtle.")
elif typeWATER == 'Totodile' or typeWATER == 'totodile':
input("Ahh so you would like to choose Totodile.")
elif typeWATER == 'Mudkip' or typeWATER == 'mudkip':
input("Ahh so you would like to choose Mudkip.")
elif typeWATER == 'Piplup' or typeWATER == 'piplup':
input("Ahh so you would like to choose Piplup.")
elif typeWATER == 'Oshawott' or typeWATER == 'oshawott':
input("Ahh so you would like to choose Oshawott.")
else:
while typeWATER != 'Squirtle' and typeWATER != 'Totodile' and typeWATER != 'Mudkip' and typeWATER != 'Piplup' and typeWATER != 'Oshawott' and typeWATER != 'squirtle' and typeWATER != 'totodile' and typeWATER != 'mudkip' and typeWATER != 'piplup' and typeWATER != 'oshawott':
print("Professor: I am sorry, I did not quite catch that.")
typeWATER = str(input("Squirtle, Totodile, Mudkip, Piplup, or Oshawott. (Type in one of the pokemon's names exactly as shown here.)"))
elif type1 == 'Grass' or type1 == 'grass':
input("I see. You would like to select a Grass type.")
print("I have 5 different pokemon for you to select from.")
typeGRASS = str(input("Bulbasaur, Chikorita, Treecko, Turtwig, or Snivy. (Type in one of the pokemon's names exactly as shown here.)"))
pokemon = typeGRASS
starter_move = 'Vine Whip'
if typeGRASS == "Bulbasaur" or typeGRASS == 'bulbasaur':
input("Ahh so you would like to choose Bulbasaur.")
elif typeGRASS == "Chikorita" or typeGRASS == 'chikorita':
input("Ahh so you would like to choose Chikorita.")
elif typeGRASS == "Treecko" or typeGRASS == 'treecko':
input("Ahh so you would like to choose Treecko.")
elif typeGRASS == "Turtwig" or typeGRASS == 'turtwig':
input("Ahh so you would like to choose Turtwig.")
elif typeGRASS == "Snivy" or typeGRASS == 'snivy':
input("Ahh so you would like to choose Snivy.")
else:
while typeGRASS != 'Bulbasaur' and typeGRASS != 'Chikorita' and typeGRASS != 'Treecko' and typeGRASS != 'Turtwig' and typeGRASS != 'Snivy' and typeGRASS != 'bulbasaur' and typeGRASS != 'chikorita' and typeGRASS != 'treecko' and typeGRASS != 'turtwig'and typeGRASS != 'snivy':
print("Professor: I am sorry, I did not quite catch that.")
typeGRASS = str(input("Bulbasaur, Chikorita, Treecko, Turtwig, or Snivy. (Type in one of the pokemon's names exactly as shown here.)"))
elif type1 == 'Fire' or type1 == 'fire':
input("I see. You would like to select a Fire type.")
print("I have 5 different pokemon for you to select from:")
typeFIRE = str(input("Charmander, Cyndaquil, Torchic, Chimchar, or Tepig. (Type in one of the pokemon's names exactly as shown here."))
pokemon = typeFIRE
starter_move = 'Ember'
if typeFIRE == 'Charmander' or typeFIRE == 'charmander':
input("Ahh so you would like to choose Charmander.")
elif typeFIRE == 'Cyndaquil' or typeFIRE == 'cyndaquil':
input("Ahh so you would like to choose Cyndaquil.")
elif typeFIRE == 'Torchic' or typeFIRE == 'torchic':
input("Ahh so you would like to choose Torchic.")
elif typeFIRE == 'Chimchar' or typeFIRE == 'chimchar':
input("Ahh so you would like to choose Chimchar.")
elif typeFIRE == 'Tepig' or typeFIRE == 'tepig':
input("Ahh so you would like to choose Tepig.")
else:
while typeFIRE != 'Charmander' and typeFIRE != 'Cyndaquil' and typeFIRE != 'Torchic' and typeFIRE != 'Chimchar' and typeFIRE != 'Tepig' and typeFIRE != 'charmander' and typeFIRE != 'cyndaquil' and typeFIRE != 'torchic' and typeFIRE != 'chimchar' and typeFIRE != 'tepig':
print("Professor: I am sorry, I did not quite catch that.")
typeFIRE = str(input("Charmander, Cyndaquil, Torchic, Chimchar, or Tepig. (Type in one of the pokemon's names exactly as shown here."))
elif type1 == 'Water' or type1 == 'water':
input("I see. You would like to select a Water type.")
print("I have 5 different pokemon for you to select from:")
typeWATER = str(input("Squirtle, Totodile, Mudkip, Piplup, or Oshawott. (Type in one of the pokemon's names exactly as shown here.)"))
pokemon = typeWATER
starter_move = 'Bubble'
if typeWATER == 'Squirtle' or typeWATER == 'squirtle':
input("Ahh so you would like to choose Squirtle.")
elif typeWATER == 'Totodile' or typeWATER == 'totodile':
input("Ahh so you would like to choose Totodile.")
elif typeWATER == 'Mudkip' or typeWATER == 'mudkip':
input("Ahh so you would like to choose Mudkip.")
elif typeWATER == 'Piplup' or typeWATER == 'piplup':
input("Ahh so you would like to choose Piplup.")
elif typeWATER == 'Oshawott' or typeWATER == 'oshawott':
input("Ahh so you would like to choose Oshawott.")
else:
while typeWATER != 'Squirtle' and typeWATER != 'Totodile' and typeWATER != 'Mudkip' and typeWATER != 'Piplup' and typeWATER != 'Oshawott' and typeWATER != 'squirtle' and typeWATER != 'totodile' and typeWATER != 'mudkip' and typeWATER != 'piplup' and typeWATER != 'oshawott':
print("Professor: I am sorry, I did not quite catch that.")
typeWATER = str(input("Squirtle, Totodile, Mudkip, Piplup, or Oshawott. (Type in one of the pokemon's names exactly as shown here.)"))
elif type1 == 'Grass' or type1 == 'grass':
input("I see. You would like to select a Grass type.")
print("I have 5 different pokemon for you to select from.")
typeGRASS = str(input("Bulbasaur, Chikorita, Treecko, Turtwig, or Snivy. (Type in one of the pokemon's names exactly as shown here.)"))
pokemon = typeGRASS
starter_move = 'Vine Whip'
if typeGRASS == "Bulbasaur" or typeGRASS == 'bulbasaur':
input("Ahh so you would like to choose Bulbasaur.")
elif typeGRASS == "Chikorita" or typeGRASS == 'chikorita':
input("Ahh so you would like to choose Chikorita.")
elif typeGRASS == "Treecko" or typeGRASS == 'treecko':
input("Ahh so you would like to choose Treecko.")
elif typeGRASS == "Turtwig" or typeGRASS == 'turtwig':
input("Ahh so you would like to choose Turtwig.")
elif typeGRASS == "Snivy" or typeGRASS == 'snivy':
input("Ahh so you would like to choose Snivy.")
else:
while typeGRASS != 'Bulbasaur' and typeGRASS != 'Chikorita' and typeGRASS != 'Treecko' and typeGRASS != 'Turtwig' and typeGRASS != 'Snivy' and typeGRASS != 'bulbasaur' and typeGRASS != 'chikorita' and typeGRASS != 'treecko' and typeGRASS != 'turtwig'and typeGRASS != 'snivy':
print("Professor: I am sorry, I did not quite catch that.")
typeGRASS = str(input("Bulbasaur, Chikorita, Treecko, Turtwig, or Snivy. (Type in one of the pokemon's names exactly as shown here.)"))
exp = random.randint(88,118)
input("Professor: Now that you have your first pokemon... Let's Battle!")
moves = [ "Tackle", "Tail Whip", "Headbutt", starter_move]
professor = Monster("Pokemon Professor Fir", "Mareep","","","","","","","","", moves[0], moves[1], moves[2], moves[3], "Tackle", "Tail Whip", "Thunder Shock", "Sand Attack", "3")
professor.main()
print("Professor: Great job in your first battle!")
print("Professor: I shall now give you a gift from me to help you on your journey:")
input(player + " received the Pokedex!")
print("You can use the Pokedex to help you document and find out about every new pokemon you see.")
input("Let's find out about your new pokemon.")
pokedex = str(input("To use this device type 'Open' (If you want to check out the Pokedex, type the previous.)"))
if pokedex == 'Open':
print("Ahh, so you would like to use it.")
pokedex_input = str(input("Input the name of any pokemon to find out about them."))
if pokedex_input == 'Bulbasaur':
Bulbasaur = Monster("","Bulbasaur", "Grass and Poison", "Overgrow and Chlorophyll.", "2 feet 4 inches", "15.2 lbs", "First Stage Evolution before Ivysaur and Venusaur", "Water, Rock, Ground, and Grass", "Flying, Bug, Ice, Fire, Psychic, and Ground", "None", "","","","","","","","","")
Bulbasaur.say_name()
Bulbasaur.say_type()
Bulbasaur.say_abilities()
Bulbasaur.say_height()
Bulbasaur.say_weight()
Bulbasaur.say_evolution()
Bulbasaur.say_strong()
Bulbasaur.say_weak()
Bulbasaur.say_immune()
elif pokedex_input == 'Ivysaur':
Ivysaur = Monster("","Ivysaur", "Grass and Poison", "Overgrow and Chlorophyll.", "3 feet 3 inches", "28.7 lbs", "Second Stage Evolution after Bulbasaur and before Venusaur", "Water, Rock, Ground, and Grass", "Flying, Bug, Ice, Fire, Psychic, and Ground", "None", "","","","","","","","","")
Ivysaur.say_name()
Ivysaur.say_type()
Ivysaur.say_abilities()
Ivysaur.say_height()
Ivysaur.say_weight()
Ivysaur.say_evolution()
Ivysaur.say_strong()
Ivysaur.say_weak()
Ivysaur.say_immune()
elif pokedex_input == 'Venusaur':
Venusaur = Monster("","Venusaur", "Grass and Poison", "Overgrow and Chlorophyll.", "6 feet 7 inches", "220.5 lbs", "Third Stage Evolution after Bulbasaur and Ivysaur", "Water, Rock, Ground, and Grass", "Flying, Bug, Ice, Fire, Psychic, and Ground", "None", "","","","","","","","","")
Venusaur.say_name()
Venusaur.say_type()
Venusaur.say_abilities()
Venusaur.say_height()
Venusaur.say_weight()
Venusaur.say_evolution()
Venusaur.say_strong()
Venusaur.say_weak()
Venusaur.say_immune()
elif pokedex_input == 'Squirtle':
Squirtle = Monster("","Squirtle", "Water", "Torrent and Rain Dish.", "1 feet 8 inches", "19.8 lbs", "First Stage Evolution before Wartortle and Blastoise", "Fire, Rock, and Ground", "Electric and Grass", "None", "","","","","","","","","")
Squirtle.say_name()
Squirtle.say_type()
Squirtle.say_abilities()
Squirtle.say_height()
Squirtle.say_weight()
Squirtle.say_evolution()
Squirtle.say_strong()
Squirtle.say_weak()
Squirtle.say_immune()
elif pokedex_input == 'Wartortle':
Wartortle = Monster("","Wartortle", "Water", "Torrent and Rain Dish.", "3 feet 3 inches", "49.6 lbs", "Second Stage Evolution after Squirtle and before Blastoise", "Fire, Rock, and Ground", "Electric and Grass", "None","", "","","","","","","","")
Wartortle.say_name()
Wartortle.say_type()
Wartortle.say_abilities()
Wartortle.say_height()
Wartortle.say_weight()
Wartortle.say_evolution()
Wartortle.say_strong()
Wartortle.say_weak()
Wartortle.say_immune()
elif pokedex_input == 'Blastoise':
Blastoise = Monster("","Blastoise", "Water", "Torrent and Rain Dish.", "5 feet 3 inches", "188 lbs", "Third Stage Evolution after Squirtle and Wartortle", "Fire, Rock, and Ground", "Electric and Grass", "None","", "","","","","","","","")
Blastoise.say_name()
Blastoise.say_type()
Blastoise.say_abilities()
Blastoise.say_height()
Blastoise.say_weight()
Blastoise.say_evolution()
Blastoise.say_strong()
Blastoise.say_weak()
Blastoise.say_immune()
elif pokedex_input == 'Charmander':
Charmander = Monster("","Charmander", "Fire", "Blaze and Solar Power.", "2 feet", "18.7 lbs", "First Stage Evolution before Charmeleon and Charizard", "Grass, Bug, Ice, and Steel", "Water, Rock and Ground", "None","", "","","","","","","","")
Charmander.say_name()
Charmander.say_type()
Charmander.say_abilities()
Charmander.say_height()
Charmander.say_weight()
Charmander.say_evolution()
Charmander.say_strong()
Charmander.say_weak()
Charmander.say_immune()
elif pokedex_input == 'Charmeleon':
Charmeleon = Monster("","Charmeleon", "Fire", "Blaze and Solar Power.", "3 feet 7 inches", "41.9 lbs", "Second Stage Evolution after Charmander and before Charizard", "Grass, Bug, Ice, and Steel", "Water, Rock, and Ground", "None","", "","","","","","","","")
Charmeleon.say_name()
Charmeleon.say_type()
Charmeleon.say_abilities()
Charmeleon.say_height()
Charmeleon.say_weight()
Charmeleon.say_evolution()
Charmeleon.say_strong()
Charmeleon.say_weak()
Charmeleon.say_immune()
elif pokedex_input == 'Charizard':
Charizard = Monster("","Charizard", "Fire and Flying", "Blaze and Solar Power.", "5 feet 7 inches", "199 lbs", "Third Stage Evolution after Charmander and Charmeleon", "Grass, Bug, Ice, Fighting, Steel, ", "Water, Electric, and Rock", "Ground","", "","","","","","","","")
Charizard.say_name()
Charizard.say_type()
Charizard.say_abilities()
Charizard.say_height()
Charizard.say_weight()
Charizard.say_evolution()
Charizard.say_strong()
Charizard.say_weak()
Charizard.say_immune()
elif pokedex_input == 'Dragonite':
Dragonite = Monster("", "Dragonite", "Dragon and Flying", "Inner Focus and Multiscale.", "7 feet 3 inches", "463 lbs", "Third Stage Evolution after Dratini and Dragonair", "Dragon, Grass, Bug, and Fighting", "Ice, Dragon, and Rock", "Ground","", "","","","","","","","")
Dragonite.say_name()
Dragonite.say_type()
Dragonite.say_abilities()
Dragonite.say_height()
Dragonite.say_weight()
Dragonite.say_evolution()
Dragonite.say_strong()
Dragonite.say_weak()
Dragonite.say_immune()
else:
print("I am sorry, that pokemon has not been documented yet.")
input("Alright. It is time for you to embark on your own pokemon journey!")
input("Thank you for completing this DEMO!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment