feat: add Pieces

This commit is contained in:
Morph01
2025-05-13 14:36:19 +02:00
parent 5a175ea4b4
commit 275d761f24
2 changed files with 21 additions and 1 deletions

View File

@@ -1,5 +1,17 @@
package org.Models; package org.Models;
public class PieceCourante { 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;
}
}
}
} }

View File

@@ -1,5 +1,13 @@
package org.Models; 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;
}
} }