added a Situation class

This commit is contained in:
Ninja-Jambon 2024-02-21 10:57:02 +01:00
parent 62d23ad228
commit a01ed1abaa

21
Situation.java Normal file
View file

@ -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);
}
}