This commit is contained in:
Cyprien111
2025-03-24 11:02:25 +01:00
parent 8890c73470
commit ec38adc42d

25
src/GomokuAI.java Normal file
View File

@@ -0,0 +1,25 @@
import java.util.List;
import java.util.Random;
public class GomokuAI{
Random random = new Random();
int difficulty = 0;
public Coordinate chooseMove(GomokuBoard board){
int x=0,y=0;
if(difficulty == 0)
{
int rand = random.nextInt(board.getPlayableCells().lenght());
}
System.out.println("L'IA à choisi : "+ x+", "+ y);
return new Coordinate(x,y);
}
}