difficulty AI changer and Setter
This commit is contained in:
@@ -24,7 +24,7 @@ public class GomokuAI extends Player {
|
||||
/** The random initialization */
|
||||
Random random = new Random();
|
||||
/** The difficulty of the GomokuAI */
|
||||
int difficulty = 0;
|
||||
private int difficulty = 0;
|
||||
|
||||
// ------------------Methods--------------------------
|
||||
/**
|
||||
@@ -94,5 +94,13 @@ public class GomokuAI extends Player {
|
||||
|
||||
return map;
|
||||
}
|
||||
// ------------------Getter--------------------------
|
||||
public int GetDifficulty() {
|
||||
return difficulty;
|
||||
}
|
||||
// ------------------Setter--------------------------
|
||||
public void SetDifficulty(int difficulty) {
|
||||
this.difficulty = difficulty;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user