updated main file
This commit is contained in:
parent
e0e75f3b98
commit
019c8f7ff0
3 changed files with 11 additions and 11 deletions
|
@ -3,19 +3,20 @@
|
|||
public class Situation {
|
||||
// Atributes
|
||||
|
||||
private int pos_i, pos_j, nb_choix;
|
||||
private int pos_i, pos_j, direction, nb_choix;
|
||||
|
||||
// Constructors
|
||||
|
||||
public Situation(int i, int j, int n) {
|
||||
public Situation(int i, int j, int d, int n) {
|
||||
this.pos_i = i;
|
||||
this.pos_j = j;
|
||||
this.direction = d;
|
||||
this.nb_choix = n;
|
||||
}
|
||||
|
||||
// Methods
|
||||
|
||||
public Situation copy(int n) {
|
||||
return new Situation(this.pos_i, this.pos_j, n);
|
||||
return new Situation(this.pos_i, this.pos_j, this.direction, n);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue