From 600d75c26927fb4c34eabc5004f5cd752683bc68 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sat, 3 Feb 2024 18:26:40 +0100 Subject: [PATCH] refactoring: renameChangeColorToChooseColor --- src/main/java/de/hsfulda/onses/services/GameService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/hsfulda/onses/services/GameService.java b/src/main/java/de/hsfulda/onses/services/GameService.java index c098f88..cc34ee2 100644 --- a/src/main/java/de/hsfulda/onses/services/GameService.java +++ b/src/main/java/de/hsfulda/onses/services/GameService.java @@ -53,7 +53,7 @@ public class GameService { game.addCardToDrawCardDeck(lastCard); } - public void changeColor() { + public void chooseColor() { // Abfrage Farbe Card.Color color = Card.Color.BLUE; //Vorübergehend Blau game.changeLastPlayedCardColor(color); @@ -84,11 +84,11 @@ public class GameService { nextPlayer(); break; case CHOOSE: - changeColor(); + chooseColor(); nextPlayer(); break; case CHOOSEDRAW: - changeColor(); + chooseColor(); nextPlayer(); drawCard(4); break;