Pokemon Python Game Week 2

 https://repl.it/languages/python3

From last week:

######################################

pokemon = ["Bulbasaur", "Squirtle", "Charmander", "Pikachu"]

print("A wild Mewtwo appears!")

input("Do you want to fight or run away?")

print("The Mewtwo attacks you!")

for number in range (4):


#######################################

Continue the project and finish it off. 

Your output should look like this:

A wild Mewtwo appears!

Do you want to fight or run away?

The Mewtwo attacks you!


Go! Bulbasaur!

Mewtwo has defeated Bulbasaur!

Press enter to send out your next Pokemon


Go! Squirtle!

Mewtwo has defeated Squirtle!

Press enter to send out your next Pokemon


Go! Charmander!

Mewtwo has defeated Charmander!

Press enter to send out your next Pokemon


Go! Pikachu!

Mewtwo has defeated Pikachu!

Press enter to send out your next Pokemon


You have no more Pokemon.

You have been defeated!


-------------------------------

Level 2

Did you finish the project?

If you finished, try the next two challenges.

1) Add an if clause to allow for the player to run away. Create alternative text for this scenario. Your text might look something like this:

A wild Mewtwo appears!

Do you want to fight(f) or run away(r)?r

You are very boring.

THE END

2) Give Mewtwo a set number of HP and allow the players to characters to do semi random levels damage to Mewtwo with each round. Your final code might look something like this:

A wild Mewtwo appears!

Do you want to fight(f) or run away(r)?f

The Mewtwo attacks you!

Mewtwo has 5000 hp.


Go! Bulbasaur!

Bulbasaur attacks Mewtwo!

Bulbasaur does 79 damage to Mewtwo.

Mewtwo has 4921 hp.

Mewtwo attacks Bulbasaur

Mewtwo has defeated Bulbasaur!

Press enter to send out your next Pokemon


Go! Squirtle!

Squirtle attacks Mewtwo!

Squirtle does 74 damage to Mewtwo.

Mewtwo has 4847 hp.

Mewtwo attacks Squirtle

Mewtwo has defeated Squirtle!

Press enter to send out your next Pokemon


Go! Charmander!

Charmander attacks Mewtwo!

Charmander does 36 damage to Mewtwo.

Mewtwo has 4811 hp.

Mewtwo attacks Charmander

Mewtwo has defeated Charmander!

Press enter to send out your next Pokemon


Go! Pikachu!

Pikachu attacks Mewtwo!

Pikachu does 80 damage to Mewtwo.

Mewtwo has 4731 hp.

Mewtwo attacks Pikachu

Mewtwo has defeated Pikachu!

Press enter to send out your next Pokemon


You have no more Pokemon.

You have been defeated!


After you finish the pokemon project, log onto code.org here:

studio.code.org/sections/WHZNZK