You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The player should be able to attack the enemy Pokemon.
Order of player vs. enemy attack is up to your discretion -- ensuring the player always attacks first will make logic much easier, but you can implement a probability function for who goes first if you want.
Create a function to calculate damage. This should take two parameters: player Pokemon and enemy Pokemon. You may use your discretion on how to calculate a Pokemon's base damage, but ensure Pokemon type multipliers are respected.
Print out which Pokemon attacked the other, and how much damage was dealt.
If a Pokemon's move has a type multiplier other than normal, ensure you print out the corresponding text (i.e. "It's SUPER effective!")
If the enemy's health falls below zero, notify the player of their victory and return to the main menu.
If the player's health falls below zero and they do not have any more Pokemon, notify them of their Game Over and kill the application.
If the player's health falls below zero and they have other Pokemon in their party, remove the dead Pokemon from the party and open the TEAM select menu without the option to quit. Change the player's current Pokemon to the one selected.
The text was updated successfully, but these errors were encountered:
The player should be able to attack the enemy Pokemon.
The text was updated successfully, but these errors were encountered: