Removed unneccesary output
This commit is contained in:
parent
dbc2d5b2d8
commit
bc9b43fcc0
|
@ -65,14 +65,12 @@ public class MalteAI implements Player{
|
||||||
}
|
}
|
||||||
// Get options which would lead to instant win.
|
// Get options which would lead to instant win.
|
||||||
Set<Integer> winningOptions = getRowCompletionOptions(options, board, id);
|
Set<Integer> winningOptions = getRowCompletionOptions(options, board, id);
|
||||||
System.out.println("WINNING: " + winningOptions);
|
|
||||||
for (Integer i: winningOptions) {
|
for (Integer i: winningOptions) {
|
||||||
return i.intValue();
|
return i.intValue();
|
||||||
}
|
}
|
||||||
// Get options which would prevent an instant win of the enemy.
|
// Get options which would prevent an instant win of the enemy.
|
||||||
enemyID = enemyID == 0 ? 1: enemyID;
|
enemyID = enemyID == 0 ? 1: enemyID;
|
||||||
Set<Integer> preventionsOptions = getRowCompletionOptions(options, board, enemyID);
|
Set<Integer> preventionsOptions = getRowCompletionOptions(options, board, enemyID);
|
||||||
System.out.println("PREVENT: " + preventionsOptions);
|
|
||||||
for (Integer i: preventionsOptions) {
|
for (Integer i: preventionsOptions) {
|
||||||
return i.intValue();
|
return i.intValue();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue