Browse Source

add playCard skip

main
fdai7906 11 months ago
parent
commit
347434e3e7
  1. 5
      src/main/java/de/hsfulda/onses/services/GameService.java

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

@ -25,6 +25,11 @@ public class GameService {
// add lastPlayedCard back to drawCardDeck
game.setLastPlayedCard(card);
// check for special rules (draw, colorchoose, skip,...)
// Skip
if (card.getValue() == Card.Value.SKIP) {
game.getPlayerService().nextTurn();
game.getPlayerService().nextTurn();
}
}
public boolean legalMove(Player player, Card card)

Loading…
Cancel
Save