Question: Finally, we will write a function that tells the outcome of a battle between two Pokemon, based on the result of the function designed for

Finally, we will write a function that tells the outcome of a battle between two Pokemon, based on the result of the function designed for Problem 4. Given two Pokemon IDs, the message should read:
"Name1 has succesfully attacked Name2!"
if the attack is succesful. Otherwise, the message should read:
"Name2 has deflected the attack from Name1!"
(Name1 and Name2 are placeholders for the actual names of the Pokemon, based on their ID)
Checkpoints
This function must call the function designed in Problem 4
When designing your function, be sure to follow all steps of the HtDF recipe including designing your tests first.
 Finally, we will write a function that tells the outcome of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!