small update with constructors

This commit is contained in:
hugomanipoud2 2025-05-09 08:16:03 +02:00
parent 92d7cc6aeb
commit 4dc627050c
1 changed files with 6 additions and 5 deletions

View File

@ -3,17 +3,18 @@ package backend;
public class Piece {
private int x;
private int y;
public Piece(int x) {
this.x = 0;
public Piece(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return 0;
return x;
}
public int getY() {
return 0;
return y;
}
public PieceType getType() {