diff --git a/src/player/maurizio/MaurizioAI.java b/src/player/maurizio/MaurizioAI.java index 52a58da..b437474 100644 --- a/src/player/maurizio/MaurizioAI.java +++ b/src/player/maurizio/MaurizioAI.java @@ -29,36 +29,33 @@ public class MaurizioAI implements Player { public int move(int[][] board){ // check for one move wins - for(int i=0;i moves1 = new LinkedList(); for(int i=0;i moves2 = new LinkedList(); - for(int i : moves1){ - moves2.add(i); - } - //look for two move wins among the non-loosing moves - LinkedList removes = new LinkedList(); - for(int i : moves2){ + for(int i : moves1){ int[][] boardNew = makeMove(board, i, id); boolean winner1 = true; for(int j=0;j=0 && x < Game.GAME_COLUMNS) && (y>=0 && y < Game.GAME_ROWS)); } + /** * checks whether the last move closed any lines on the board */