GomokuAI
This commit is contained in:
25
src/GomokuAI.java
Normal file
25
src/GomokuAI.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user