This commit is contained in:
Abdelaziz Faysal EL GAMMAL 2025-04-15 09:49:03 +02:00
commit 00a81b0b74
2 changed files with 9 additions and 5 deletions

View File

@ -3,6 +3,7 @@ package backend;
import java.util.ArrayList;
public class Board {
private int colNum;
private int lineNum;
private Piece[][] board;
@ -20,11 +21,11 @@ public class Board {
}
}
public int getWidth() {
return colNum;
public int getWidth() {
return colNum;
}
public int getHeight() {
public int getHeight() {
return lineNum;
}

View File

@ -2,12 +2,15 @@ package backend;
public class Piece {
private int x;
private int y;
public int getX() {
return 0;
return this.x;
}
public int getY() {
return 0;
return this.y;
}
public PieceType getType() {