diff options
Diffstat (limited to 'src/main/java/org/luxons')
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/boards/Science.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/boards/Science.java b/src/main/java/org/luxons/sevenwonders/game/boards/Science.java index 3b08ce8f..f3d6a681 100644 --- a/src/main/java/org/luxons/sevenwonders/game/boards/Science.java +++ b/src/main/java/org/luxons/sevenwonders/game/boards/Science.java @@ -28,7 +28,11 @@ public class Science { } public int getQuantity(ScienceType type) { - return quantities.get(type); + return quantities.getOrDefault(type, 0); + } + + public int size() { + return quantities.size() + jokers; } public int computePoints() { |