From b10fdde6752e9f22a5bfc369f4e06d79aa59fe58 Mon Sep 17 00:00:00 2001 From: fdai7906 Date: Fri, 2 Feb 2024 16:46:25 +0100 Subject: [PATCH] add Game changeLastPlayedCard --- src/main/java/de/hsfulda/onses/models/Game.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/hsfulda/onses/models/Game.java b/src/main/java/de/hsfulda/onses/models/Game.java index 0f9a56c..6a64133 100644 --- a/src/main/java/de/hsfulda/onses/models/Game.java +++ b/src/main/java/de/hsfulda/onses/models/Game.java @@ -18,6 +18,9 @@ public class Game { return lastPlayedCard; } + public void changeLastPlayedCardColor(Card.Color color) { + lastPlayedCard.setColor(color); + } public Game setLastPlayedCard(Card lastPlayedCard) { this.lastPlayedCard = lastPlayedCard; return this;