From 4583bbd7e62bc3819a39ffe1b1b37081f0fef1a5 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 1 May 2023 19:48:42 +0200 Subject: [PATCH] set default color of pieces --- app/src/main/java/school_project/GameUI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/school_project/GameUI.java b/app/src/main/java/school_project/GameUI.java index 82b4cf8..d15a53b 100644 --- a/app/src/main/java/school_project/GameUI.java +++ b/app/src/main/java/school_project/GameUI.java @@ -19,7 +19,7 @@ public class GameUI extends BorderPane { pieces.setSpacing(10); for (Piece p : level.getPieces()) { MatrixShape _piece = new MatrixShape(p); - _piece.setColor(Color.RED); // TODO: Change with piece color + _piece.setColor(p.getColor()); pieces.getChildren().add(_piece); }