Browse Source

refactoring: removeFirstCardFromCardDrawDeck

main
fdai7793 11 months ago
parent
commit
c14c4d8309
  1. 1
      src/main/java/de/hsfulda/onses/services/GameService.java

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

@ -139,6 +139,7 @@ public class GameService {
Card card = this.game.getDrawCardDeck().get(i);
if (card.getColor() != Card.Color.BLACK) {
this.game.setLastPlayedCard(card);
this.game.getDrawCardDeck().remove(card);
break;
}
}

Loading…
Cancel
Save