diff --git a/src/backend/Piece.java b/src/backend/Piece.java index 4597166..43587bc 100644 --- a/src/backend/Piece.java +++ b/src/backend/Piece.java @@ -3,11 +3,15 @@ package backend; public class Piece { private int x; private int y; + private String color; + private PieceType type; - public Piece(int x, int y) { + public Piece(int x, int y, String color, PieceType type) { this.x=x; this.y=y; + this.color=color; + this.type=type; } public int getX() { @@ -19,7 +23,7 @@ public class Piece { } public PieceType getType() { - return null; + return type; } public boolean isWhite() {