LES COULEURS

This commit is contained in:
Cyprien111
2025-04-14 10:21:19 +02:00
parent dd3104e823
commit aef6dcf2b7
4 changed files with 21 additions and 7 deletions

View File

@@ -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();
}