From e8a6b83d43df51fab22ad35015eaaeb95cacff03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Tue, 8 Aug 2023 12:19:16 +0200 Subject: [PATCH] add draw pile method --- pyproject.toml | 2 +- src/hanabi/hanab_game.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1b156f6..6464399 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hanabi" -version = "1.1.0" +version = "1.1.1" description = "Hanabi interface" readme = "README.md" license = { file = "LICENSE" } diff --git a/src/hanabi/hanab_game.py b/src/hanabi/hanab_game.py index 0783f21..4998796 100644 --- a/src/hanabi/hanab_game.py +++ b/src/hanabi/hanab_game.py @@ -264,6 +264,10 @@ class GameState: def deck_size(self): return self.instance.deck_size + @property + def draw_pile_size(self): + return self.deck_size - self.progress + # Properties of GameState def is_over(self):