- Let’s make a text-based Pokémon game via python.
- Your goal is to become a Pokémon master!
- You have 3 steps left to become a Pokémon master, Let’s choose your Pokémon among 3 of Pokémons and take a walk!
- Set the trainer’s name
- Choose the starter Pokémon among (Charmander, Bulbasaur, Squirtle)
- Set the name of Pokémon you choose
- Trainer’s goal is to become a Pokémon master, to achieve his/her dream, trainer has 3 steps left to Pokémon master.
- Trainer can choose 4 ways to walk, each of east, west, north, south.
- Each of the wild Pokémon (Charmander, Bulbasaur, Squirtle, and None) is assigned randomly to each way (no duplicates).
- If the path Trainer choose was None, Trainer doesn’t need to fight wild Pokémon but just walk 1 step.
- Otherwise, if the Trainer choose was encountering wild Pokémon, then Pokémon battle starts.
- Pokémon battle finished when either HP of enemy or my Pokémon is 0 (HP cannot be negative)
- If Trainer has no Pokémon left to fight, game is over -> print “{Trainer’s name} Blacked out!”
- If Trainer has Pokémon left alive to fight, Trainer can choose Pokémon among them
- Every battle starts with the action of the Trainer, Trainer has 5 options below:
- Elemental attack
- attack wild Pokémon with each Pokémon’s own elemental attack
- damage 2x if (attack from attribute: Fire àGrass, Grass àWater, Water àFire)
- damage 0.5x vice versa (attack from attribute: Grass àFire, Water àGrass, Fire àWater)
- Physical attack
- ‘Tackle’ enemy Pokémon
- deals equivalent of 10 damage no matter what enemy’s attribute is
- Cure
- heal maximum of your Pokémon on the battleground
- Capture wild Pokémon
- 90% of success possibility if wild Pokémon’s HP is under 50% of maxHP
- 10% of success possibility if wild Pokémon’s HP is over or equal to 50% of maxHP
- if your capturing is missed, your turn finished
- Change Pokémon in my hands
- choose another Pokémon among your Pokémon in hands.
- if you have just 1 Pokémon only, you cannot choose this option (if player choose this option even if player just has only 1 Pokémon, send alert message)
- if player’s Pokémon’s HP becomes 0, then that Pokémon is dead, and trainer throw that monster ball away
- Elemental attack
- After the turn of trainer is finished, wild Pokémon use only elemental attack to attack Trainer’s Pokémon.
- After each of Pokémon’s turn is over, information of HP left of my Pokémon and wild Pokémon should be printed on python shell
- After trainer complete his/her 3 steps of walking, print the word “{trainer’s name}! Congratulations! You became Pokémon master!”