From 672f21267d294edb27063c006215062a5b52ff37 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 31 Jan 2024 14:42:12 +0100 Subject: [PATCH] legalMoveColorBlack --- src/main/java/de/hsfulda/onses/services/GameService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index 1cac834..ca49d7c 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -33,6 +33,8 @@ public class GameService { if (card.getValue() == lastCard.getValue()) legalMoveFound = true; // same value + if (card.getColor() == Card.Color.BLACK) legalMoveFound = true; // Color Black + return legalMoveFound; }