add draw pile method
This commit is contained in:
parent
e8f3405d58
commit
e8a6b83d43
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "hanabi"
|
||||
version = "1.1.0"
|
||||
version = "1.1.1"
|
||||
description = "Hanabi interface"
|
||||
readme = "README.md"
|
||||
license = { file = "LICENSE" }
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user