diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index bdee4d5..1cac834 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -31,6 +31,8 @@ public class GameService { // rules: if (card.getColor() == lastCard.getColor()) legalMoveFound = true; // same color + if (card.getValue() == lastCard.getValue()) legalMoveFound = true; // same value + return legalMoveFound; }