play.py yahtzee.py yahtzee_goals.py

This commit is contained in:
njmason2
2025-11-12 19:01:36 -05:00
parent 7307ca25e0
commit 3c9116087b
3 changed files with 122 additions and 2 deletions

View File

@@ -97,7 +97,7 @@ class Yahtzee:
def get_unused_goals(self):
"""
Conditional appending of the list of unused_goals.
Conditional appending of the list of unused_goals, displayed in the menu.
"""
unused_goals = []
for goal in self.goals:
@@ -120,7 +120,8 @@ class Yahtzee:
def get_dice_to_reroll(self, choice_ints):
"""Conditional logic to append dice to the dice_to_reroll list,
and removes dice that weren't chosen from the choice_ints list.
and removes dice that weren't chosen from the choice_ints list
(the Dice: displayed in the show_status function)
"""
dice_to_reroll = []
for die in self.dice: