Round.get_winner_summary added
This commit is contained in:
@@ -170,6 +170,13 @@ class Round():
|
||||
def is_guessing_completed(self):
|
||||
return len(self.guesses) == 4
|
||||
|
||||
def get_winner_summary(self) -> []:
|
||||
summary = [0]*4
|
||||
for stash in self.stashes:
|
||||
if stash.is_completed():
|
||||
summary[stash.get_winner()] += 1
|
||||
return summary
|
||||
|
||||
def get_last_stash(self):
|
||||
return self.stashes[-1] if self.stashes else None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user