diff --git a/src/player/malte/MalteAI.java b/src/player/malte/MalteAI.java index 311efa2..f3bac1d 100644 --- a/src/player/malte/MalteAI.java +++ b/src/player/malte/MalteAI.java @@ -137,10 +137,13 @@ public class MalteAI implements Player{ weight *= W_WIN; } } - // Prevent choosing a bad spot Sequence xA = sequencesAbove[i]; - if (sequencesAbove[i].matches("EEE")) { + if (xA.matches("EEE")) { + // Prevent choosing a bad spot weight *= W_DONT; + } else if (xA.matches("MMM")) { + // Open the opportunity + weight *= W_WIN; } } return weight;