diff --git a/src/player/malte/MalteAI.java b/src/player/malte/MalteAI.java index 6668e8f..ae79d90 100644 --- a/src/player/malte/MalteAI.java +++ b/src/player/malte/MalteAI.java @@ -49,7 +49,8 @@ public class MalteAI implements Player{ this.enemyID = id == 1 ? 2: 1; } - public void setEnemyID(int id) { + @Override + public void setEnemyID(int enemyID) { this.enemyID = enemyID; } @@ -70,7 +71,6 @@ public class MalteAI implements Player{ return i.intValue(); } // Get options which would prevent an instant win of the enemy. - enemyID = enemyID == 0 ? 1: enemyID; Set preventionsOptions = getRowCompletionOptions(options, board, enemyID); for (Integer i: preventionsOptions) { System.out.println("Choose to prevent");