From 6f55dde6594c324796ff522bc6f20fb43ed7ef54 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Fri, 20 Oct 2017 17:11:08 +0200 Subject: [PATCH] Did bug work-around --- src/player/malte/MalteAI.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/player/malte/MalteAI.java b/src/player/malte/MalteAI.java index bcd1f3d..88c22e8 100644 --- a/src/player/malte/MalteAI.java +++ b/src/player/malte/MalteAI.java @@ -68,6 +68,7 @@ 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) { // Only accept options, that would not cause a winning opportunity for the enemy.