class Piece filled

This commit is contained in:
cm 2025-04-10 09:34:24 +02:00
parent d5d54cb412
commit 31cb44978a
1 changed files with 15 additions and 5 deletions

View File

@ -1,21 +1,31 @@
package backend;
public class Piece {
private int x;
private int y;
private PieceType type;
private boolean isWhite;
public Piece(boolean isWhite, PieceType type, int x ,int y) {
this.x = x;
this.y = y;
this.type = type;
this.isWhite = isWhite;
}
public int getX() {
return 0;
return x;
}
public int getY() {
return 0;
return y;
}
public PieceType getType() {
return null;
return type;
}
public boolean isWhite() {
return false;
return isWhite;
}
}