From a364773a69babc8a861ee9bc33c2d4435c6a3d70 Mon Sep 17 00:00:00 2001 From: fdai7920 Date: Sun, 4 Feb 2024 21:04:59 +0100 Subject: [PATCH] refactoring: merge same cases in playCard --- src/main/java/de/hsfulda/onses/services/GameService.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index 08b75d8..1101305 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -87,11 +87,7 @@ public class GameService { // Skip switch (card.getValue()) { - case SKIP: - nextPlayer(); - nextPlayer(); - break; - case REVERSE: + case SKIP, REVERSE: nextPlayer(); nextPlayer(); break; @@ -160,7 +156,6 @@ public class GameService { } public void fillPlayerDecks() { - this.drawCard(7); this.drawCard(7); }