Last active
July 2, 2018 21:59
-
-
Save maagmirror/df7f1adb9a574b5633cb22b6b0f3be24 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pokemon_elegido = input ("Contra que pokemon quieres combatir? (Squirtle / Charmander / Bulbasaur ): ").upper() | |
vida_pikachu = 100 | |
vida_enemigo = 1 | |
ataque_pokemon = 0 | |
if pokemon_elegido == "SQUIRTLE": | |
vida_enemigo = 90 | |
nombre_pokemon = "Squirtle" | |
ataque_pokemon = 8 | |
elif pokemon_elegido == "CHARMANDER": | |
vida_enemigo = 80 | |
nombre_pokemon = "Charmander" | |
ataque_pokemon = 7 | |
elif pokemon_elegido == "BULBASAUR": | |
vida_enemigo = 100 | |
nombre_pokemon = "Bulbasaur" | |
ataque_pokemon = 10 | |
else: | |
print("te mamaste, elegi un pokemon, qliao") | |
while vida_pikachu > 0 and vida_enemigo > 0: | |
print("el Impactrueno hace 10 de daño y Bola Voltio hace 12 de daño") | |
ataque_elegido = input ("Que ataque quieres usar? (Impactrueno / bola voltio): ").upper() | |
if ataque_elegido == "IMPACTRUENO": | |
vida_enemigo -= 10 | |
elif ataque_elegido == "BOLA VOLTIO": | |
vida_enemigo -= 12 | |
else: | |
print("no es un ataque valido") | |
vida_pikachu -= ataque_pokemon | |
print("{} te hace un ataque de {} de daño y la vida de tu pikachu es de {} ".format(nombre_pokemon, ataque_pokemon, vida_pikachu)) | |
print("la vida de {} es ahora de {} ".format(nombre_pokemon, vida_enemigo)) | |
if vida_enemigo <= 0: | |
print("has ganado") | |
if vida_pikachu <= 0: | |
print("has perdido :c") | |
print ("El combate ha terminado") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment