From a5bc6ba5925173e05c595441a5b9668b2ee0ac14 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Fri, 2 Feb 2024 16:36:36 +0100 Subject: [PATCH] add playCard Reverse --- src/main/java/de/hsfulda/onses/services/GameService.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index a3d14b2..072c664 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -33,6 +33,11 @@ public class GameService { nextPlayer(); nextPlayer(); } + // Reverse + if (card.getValue() == Card.Value.REVERSE) { + nextPlayer(); + nextPlayer(); + } } public boolean legalMove(Player player, Card card)