From 3e2631078a94307a7085653e923b4c281e776af5 Mon Sep 17 00:00:00 2001 From: Cyprien111 <105004796+Cyprien111@users.noreply.github.com> Date: Mon, 7 Apr 2025 09:38:36 +0200 Subject: [PATCH] difficulty AI changer and Setter --- src/GomokuAI.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/GomokuAI.java b/src/GomokuAI.java index e3a8a2e..4349976 100644 --- a/src/GomokuAI.java +++ b/src/GomokuAI.java @@ -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; + } }