From e4738322a9c09b0f2364286897414964208feb23 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Fri, 2 Feb 2024 16:51:14 +0100 Subject: [PATCH] add playcard Reverse --- src/main/java/de/hsfulda/onses/services/GameService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index 072c664..7788995 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -38,6 +38,12 @@ public class GameService { nextPlayer(); nextPlayer(); } + // Choose + if (card.getValue() == Card.Value.CHOOSE) { + // Abfrage Farbe + Card.Color color = Card.Color.BLUE; //Vorübergehend Blau + game.changeLastPlayedCardColor(color); + } } public boolean legalMove(Player player, Card card)