From 5ddbe1bf1b2b40dd59472b5e8addf1d5a2422d30 Mon Sep 17 00:00:00 2001 From: fdai7920 Date: Sun, 4 Feb 2024 20:37:42 +0100 Subject: [PATCH] refactoring: simplify fillPlayerDecks --- src/main/java/de/hsfulda/onses/services/GameService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index f7618f7..bd223d5 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -148,13 +148,9 @@ public class GameService { } public void fillPlayerDecks() { - for (int i = 0; i < 7; i++) { - this.drawCard(1); - this.nextPlayer(); - this.drawCard(1); - this.nextPlayer(); - } + this.drawCard(7); + this.drawCard(7); } }