difficulty AI changer and Setter

This commit is contained in:
Cyprien111
2025-04-07 09:38:36 +02:00
parent 853ddaf47a
commit 3e2631078a

View File

@@ -24,7 +24,7 @@ public class GomokuAI extends Player {
/** The random initialization */ /** The random initialization */
Random random = new Random(); Random random = new Random();
/** The difficulty of the GomokuAI */ /** The difficulty of the GomokuAI */
int difficulty = 0; private int difficulty = 0;
// ------------------Methods-------------------------- // ------------------Methods--------------------------
/** /**
@@ -94,5 +94,13 @@ public class GomokuAI extends Player {
return map; return map;
} }
// ------------------Getter--------------------------
public int GetDifficulty() {
return difficulty;
}
// ------------------Setter--------------------------
public void SetDifficulty(int difficulty) {
this.difficulty = difficulty;
}
} }