fix: deprecated simulationattack
Compare changes
Files
4@@ -11,7 +11,7 @@ import java.util.Random;
@@ -11,7 +11,7 @@ import java.util.Random;
@@ -39,7 +39,7 @@ public class Battle {
@@ -39,7 +39,7 @@ public class Battle {
if (!armyOne.hasUnits() || !armyTwo.hasUnits()) throw new IllegalArgumentException("Army can not be empty");
if (Objects.equals(armyOne, armyTwo)) throw new IllegalArgumentException("Armies can not be the same");
@@ -53,6 +53,7 @@ public class Battle {
@@ -53,6 +53,7 @@ public class Battle {
@@ -116,21 +117,69 @@ public class Battle {
@@ -116,21 +117,69 @@ public class Battle {
attackLog.add(new SimulationAttack(attackingArmy, attacker, defendingArmy, defender, terrain).toString());