From ec38adc42dcc8b47aa22389511aa80aebec81878 Mon Sep 17 00:00:00 2001 From: Cyprien111 <105004796+Cyprien111@users.noreply.github.com> Date: Mon, 24 Mar 2025 11:02:25 +0100 Subject: [PATCH] GomokuAI --- src/GomokuAI.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/GomokuAI.java diff --git a/src/GomokuAI.java b/src/GomokuAI.java new file mode 100644 index 0000000..14c1148 --- /dev/null +++ b/src/GomokuAI.java @@ -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); + } +} \ No newline at end of file