diff --git a/src/backend/Piece.java b/src/backend/Piece.java index ffa88bb..45993d6 100644 --- a/src/backend/Piece.java +++ b/src/backend/Piece.java @@ -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; } }