diff --git a/src/player/MalteAI.java b/src/player/MalteAI.java index 149f83d..b6ceee8 100644 --- a/src/player/MalteAI.java +++ b/src/player/MalteAI.java @@ -3,6 +3,7 @@ package player; import java.util.Random; import java.util.Set; import java.util.HashSet; +import java.util.Arrays; public class MalteAI implements Player{ @@ -15,7 +16,7 @@ public class MalteAI implements Player{ } public int move(int[][] board){ - Set options = new HashSet<>([0, 1, 2, 3, 4, 5, 6]); + Set options = new HashSet(Arrays.asList(0,1,2,3,4,5,6)); for (Integer i: options) { if (board[i][0] != 0) { options.remove(i);