summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/Stone.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jrummikub/model/Stone.java b/src/jrummikub/model/Stone.java
index da8052b..800425e 100644
--- a/src/jrummikub/model/Stone.java
+++ b/src/jrummikub/model/Stone.java
@@ -71,4 +71,12 @@ public class Stone implements Sizeable {
return 1;
}
+ @Override
+ public String toString() {
+ if (joker) {
+ return "Stone[joker,color=" + color + "]";
+ } else {
+ return "Stone[value=" + value + ",color=" + color + "]";
+ }
+ }
}