Merge remote-tracking branch 'origin/Thibaut' into Gwendal
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
package org.Models;
|
||||
|
||||
public class PieceCourante {
|
||||
protected boolean[][] motif = new boolean[4][4];
|
||||
|
||||
PieceCourante() {
|
||||
initialiserPieceCourante();
|
||||
}
|
||||
|
||||
public void initialiserPieceCourante() {
|
||||
for (int i = 0; i < 4; i++) {
|
||||
for (int j = 0; j < 4; j++) {
|
||||
this.motif[i][j] = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
package org.Models;
|
||||
|
||||
public class PieceL {
|
||||
public class PieceL extends PieceCourante {
|
||||
|
||||
PieceL(){
|
||||
super();
|
||||
this.motif[1][0] = true;
|
||||
this.motif[2][0] = true;
|
||||
this.motif[3][0] = true;
|
||||
this.motif[3][1] = true;
|
||||
this.motif[3][2] = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user