LES COULEURS
This commit is contained in:
@@ -24,7 +24,7 @@ public class GomokuAI extends Player {
|
||||
/** The random initialization */
|
||||
Random random = new Random();
|
||||
/** The difficulty of the GomokuAI */
|
||||
private int difficulty = 0;
|
||||
private int difficulty = 1;
|
||||
|
||||
// ------------------Methods--------------------------
|
||||
/**
|
||||
@@ -37,7 +37,7 @@ public class GomokuAI extends Player {
|
||||
public GomokuCell chooseMove(GomokuBoard board) {
|
||||
|
||||
List<GomokuCell> playableCell = board.getPlayableCells();
|
||||
GomokuCell playCell;
|
||||
GomokuCell playCell= null;
|
||||
int x = 0, y = 0;
|
||||
|
||||
switch (difficulty) {
|
||||
@@ -53,6 +53,7 @@ public class GomokuAI extends Player {
|
||||
playCell = entry.getKey();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user