diff --git a/src/main/java/de/hsfulda/onses/services/PlayerService.java b/src/main/java/de/hsfulda/onses/services/PlayerService.java index 089e50c..09b9f91 100644 --- a/src/main/java/de/hsfulda/onses/services/PlayerService.java +++ b/src/main/java/de/hsfulda/onses/services/PlayerService.java @@ -63,7 +63,9 @@ public class PlayerService { public void botMove() { for (int i = 0; i < this.playerList.getLast().getPlayerDeck().size(); i++) { if (getGame().getGameService().legalMove(this.playerList.getLast().getPlayerDeck().get(i))) { - this.removeCardFromPlayerDeck(this.playerList.getLast().getPlayerDeck().get(i)); + Card playCard = this.playerList.getLast().getPlayerDeck().get(i); + this.removeCardFromPlayerDeck(playCard); + getGame().getGameService().playCard(playCard); break; } }