Question: create a java program Trainer Class: Implement a Trainer class that uses an array of objects. Adapt battle logic to have two teams fight against

create a java program
Trainer Class:
Implement a Trainer class that uses an array of objects.
Adapt battle logic to have two teams fight against each other until one is totally defeated.
User should be able to switch pokemon during the battle.
Type-Effectiveness:
At minimum cover the Fire > Grass > Water > Fire cycle.
Super-effective attacks should do double damage, resisted attacks should do half.
If a pokemon is the same type as the attack it uses, the attack gains a x1.5 bonus to damage.

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!