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