found bug

This commit is contained in:
Maurizio Bruetsch 2017-10-21 00:12:17 +02:00
parent 8bc4af7d8a
commit dd68bbf6c7

View file

@ -38,7 +38,7 @@ public class MaurizioAI implements Player {
int[][] boardNew = makeMove(board, i, id);
for(int j=0;j<Game.GAME_COLUMNS;j++){
if(boardNew[j][0] == 0 && checkWin(boardNew, j, enemyID)){
return j;
return j; // NOPE !!!
}
}
return i;