Add: Partial Implementation Of The toString Method And Test in Player.java And PlayerTest.java III.

This commit is contained in:
GabrieleRadice
2026-04-12 20:07:46 +02:00
parent adfdf755a6
commit 2da6642468
2 changed files with 5 additions and 3 deletions
@@ -234,12 +234,12 @@ public class Player {
+ "\n\tGatherers: " + this.gatherers.toString()
+ "\n\tShamans: " + this.shamans.toString()
+ "\n\tHunters: " + this.hunters.toString()
+ "\n\tBuildings: \n";
+ "\n\tBuildings: [\n";
for (BuildingCard buildingCard : this.buildingCards) {
toPrint += buildingCard.toString().indent(8);
toPrint += toPrint.replaceAll("\\n$", "") + "]";
}
toPrint += "\t\t]";
return toPrint;
}
// endregion functions