From a01ed1abaae74366929fb72a631324874acf5065 Mon Sep 17 00:00:00 2001 From: Ninja-Jambon Date: Wed, 21 Feb 2024 10:57:02 +0100 Subject: [PATCH] added a Situation class --- Situation.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Situation.java diff --git a/Situation.java b/Situation.java new file mode 100644 index 0000000..e048ece --- /dev/null +++ b/Situation.java @@ -0,0 +1,21 @@ +// Antoine CRETUAL, Lukian LEIZOUR, 21/02/2024 + +public class Situation { + // Atributes + + private int pos_i, pos_j, nb_choix; + + // Constructors + + public Situation(int i, int j, int n) { + this.pos_i = i; + this.pos_j = j; + this.nb_choix = n; + } + + // Methods + + public Situation copy(int n) { + return new Situation(this.pos_i, this.pos_j, n); + } +}