From bf4edae24e9159f611aa4fe2d70790409743be7d Mon Sep 17 00:00:00 2001 From: "l.mccann-marteau" Date: Wed, 9 Apr 2025 10:24:15 +0200 Subject: [PATCH] piece class with tentative de boolean --- src/backend/Piece.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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() {