From c14c4d8309bb21c780a5c415a9bc4753a87a029a Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sun, 4 Feb 2024 20:09:28 +0100 Subject: [PATCH] refactoring: removeFirstCardFromCardDrawDeck --- src/main/java/de/hsfulda/onses/services/GameService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index cc6e016..2514ae7 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/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; } }