summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java5
-rw-r--r--backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java b/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
index 54045607..dbaaad58 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/api/HandCard.java
@@ -41,4 +41,9 @@ public class HandCard {
return playable;
}
+ @Override
+ public String toString() {
+ return "HandCard{" + "card=" + card + ", chainable=" + chainable + ", free=" + free + ", playable=" + playable
+ + '}';
+ }
}
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java b/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
index 473a1bcf..f0ed278e 100644
--- a/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
+++ b/backend/src/main/java/org/luxons/sevenwonders/game/cards/Card.java
@@ -113,4 +113,9 @@ public class Card {
public int hashCode() {
return Objects.hash(name);
}
+
+ @Override
+ public String toString() {
+ return "Card{" + name + '}';
+ }
}
bgstack15