Merge branch 'master' of gitlab.isima.fr:audorival/gomoku

This commit is contained in:
Aubin DORIVAL
2025-03-24 11:04:20 +01:00

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