added a Situation class
This commit is contained in:
parent
62d23ad228
commit
a01ed1abaa
1 changed files with 21 additions and 0 deletions
21
Situation.java
Normal file
21
Situation.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue