Question: Objective In this lab, you will work with your partners to expand the basic pokemon game from lectures this week into something that more closely

Objective
In this lab, you will work with your partners to expand the basic pokemon game from lectures this week into something that more closely resembles the game. You will be adding two specific aspects of the game, support for teams of pokemon and logic to manage type-effectiveness.
Requirements
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!