Browse Source

refactoring: merge same cases in playCard

main
fdai7920 11 months ago
parent
commit
a364773a69
  1. 7
      src/main/java/de/hsfulda/onses/services/GameService.java

7
src/main/java/de/hsfulda/onses/services/GameService.java

@ -87,11 +87,7 @@ public class GameService {
// Skip // Skip
switch (card.getValue()) { switch (card.getValue()) {
case SKIP:
nextPlayer();
nextPlayer();
break;
case REVERSE:
case SKIP, REVERSE:
nextPlayer(); nextPlayer();
nextPlayer(); nextPlayer();
break; break;
@ -160,7 +156,6 @@ public class GameService {
} }
public void fillPlayerDecks() { public void fillPlayerDecks() {
this.drawCard(7); this.drawCard(7);
this.drawCard(7); this.drawCard(7);
} }

Loading…
Cancel
Save