Merge branch 'master' of gitlab.isima.fr:audorival/gomoku
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
public class GomokuAI{
|
public class GomokuAI{
|
||||||
@@ -24,7 +23,7 @@ public class GomokuAI{
|
|||||||
int x=0,y=0;
|
int x=0,y=0;
|
||||||
if(difficulty == 0)
|
if(difficulty == 0)
|
||||||
{
|
{
|
||||||
int rand = random.nextInt(board.getPlayableCells().lenght());
|
int rand = random.nextInt(board.getPlayableCells().size());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user