From b294b37bfa85bcdb6303159edf04763ac527d24a Mon Sep 17 00:00:00 2001 From: Cyprien111 <105004796+Cyprien111@users.noreply.github.com> Date: Mon, 31 Mar 2025 08:38:22 +0200 Subject: [PATCH] le size --- src/GomokuAI.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GomokuAI.java b/src/GomokuAI.java index 90efcf6..850cfb0 100644 --- a/src/GomokuAI.java +++ b/src/GomokuAI.java @@ -1,4 +1,3 @@ -import java.util.List; import java.util.Random; public class GomokuAI{ @@ -24,7 +23,7 @@ public class GomokuAI{ int x=0,y=0; if(difficulty == 0) { - int rand = random.nextInt(board.getPlayableCells().lenght()); + int rand = random.nextInt(board.getPlayableCells().size()); }