Removed unneccesary output

This commit is contained in:
Malte Tammena 2017-10-20 21:08:14 +02:00
parent dbc2d5b2d8
commit bc9b43fcc0

View file

@ -65,14 +65,12 @@ public class MalteAI implements Player{
}
// Get options which would lead to instant win.
Set<Integer> winningOptions = getRowCompletionOptions(options, board, id);
System.out.println("WINNING: " + winningOptions);
for (Integer i: winningOptions) {
return i.intValue();
}
// Get options which would prevent an instant win of the enemy.
enemyID = enemyID == 0 ? 1: enemyID;
Set<Integer> preventionsOptions = getRowCompletionOptions(options, board, enemyID);
System.out.println("PREVENT: " + preventionsOptions);
for (Integer i: preventionsOptions) {
return i.intValue();
}