diff --git a/src/main/java/de/hsfulda/onses/services/PlayerService.java b/src/main/java/de/hsfulda/onses/services/PlayerService.java index 1d74ef9..3c3fb47 100644 --- a/src/main/java/de/hsfulda/onses/services/PlayerService.java +++ b/src/main/java/de/hsfulda/onses/services/PlayerService.java @@ -53,20 +53,9 @@ public class PlayerService { Player player; if (this.currentTurn) { player = playerList.getFirst(); - for (int i = 0; i < player.getPlayerDeck().size(); i++) { - if (player.getPlayerDeck().get(i) == card) { - player.getPlayerDeck().remove(i); - break; - } - } } else { player = playerList.getLast(); - for (int i = 0; i < player.getPlayerDeck().size(); i++) { - if (player.getPlayerDeck().get(i) == card) { - player.getPlayerDeck().remove(i); - break; - } - } } + player.getPlayerDeck().remove(card); } }