From 9e2839db7f3f8f3975a3427e2651db93f28102ab Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Wed, 31 Jan 2024 13:32:40 +0100 Subject: [PATCH] add shuffleDeck --- src/main/java/de/hsfulda/onses/services/GameService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index d1a440d..d0c36ab 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -52,4 +52,8 @@ public class GameService { } } + public void shuffleDeck() { + Collections.shuffle(game.getDrawCardDeck()); + } + }