This commit is contained in:
Cyprien111
2025-03-31 08:38:22 +02:00
parent b32e9146b7
commit b294b37bfa

View File

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