From 361fe5920af12a946f331a56640a766213cc0356 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Tue, 17 Oct 2017 12:32:06 +0200 Subject: [PATCH] AI changes. --- src/player/MalteAI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);