]> git.treefish.org Git - shutbox.git/commitdiff
added dice getter
authorAlexander Schmidt <alex@treefish.org>
Tue, 6 Oct 2020 09:43:36 +0000 (11:43 +0200)
committerAlexander Schmidt <alex@treefish.org>
Tue, 6 Oct 2020 09:43:36 +0000 (11:43 +0200)
src/game.py

index 04a32e2699a9ea1dcf2137244bdaa2f3c30261dd..50d83c024b130ac2f76613bcbdd5fd94616728df 100644 (file)
@@ -17,6 +17,9 @@ class Game:
                 if self._can_be_shut(rods):
                     self._options.append(rods)
 
+    def get_dice(self):
+        return self._diced
+
     def shut(self, rods):
         if self._is_valid_option(rods):
             for rod in rods: