|
When the leader of a gym is the only trainer in the gym, and he leaves, does he remain the leader of the gym? |
No. The leader of the gym must be a trainer in the gym. Therefore, in this case, the gym will have no leaders.
|
How is the score of a team computed exactly? |
The score of a team consists of three parts: - Battles: this part of the score is the only one that is cumulative (מצטבר). Whenever a player from the team wins a battle, the score increases by 2, whenever a player from the team loses a battle, the score decreases by 1. - Leaders: number of leaders from the team in the **current** state of the game x10 (players that were leaders previously do not count). - Levels: the sum of the **current** levels of all players from the team.
|
Is the level of an item always an integer? |
Yes.
|
Do and Don'ts regarding class Trainer: |
Don't: Change the definition of functions we have defined in the first part (we are going to test them).
Do: Basically anything else.
|
What happens when a trainer moves through a loop from and to the same location? |
In this case, the system must behave as if the trainer left the location, then arrived at it.
|
Will you try to insert locations to the world using World::Insert? |
As mentioned, World should provide all functions provided by KGraph<std::string, Location*, 4>, this includes KGraph<std::string, Location*, 4>::Insert(std::string, Location*). But, Since the creation of a Location can be done only through a subclass, which you have declared and implemented, we cannot test calls to World::Insert in a unit test. Nevertheless, we are going to check manually that your program handles such calls.
|
How should World::Insert(std::string) behave? What should be the default value for the Location*? |
You can assume the user does not call World::Insert(std::string) but only World::Insert(std::string, Location*). Namely, you can choose the default value to be whatever you want.
|
|