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

12
play.py
View File

@@ -3,12 +3,24 @@ from yahtzee_goals import (
GoalOnes,
GoalTwos,
GoalThrees,
GoalFours,
GoalFives,
GoalSixes,
Goal_is_three_of_a_kind,
Goal_is_four_of_a_kind,
Goal_is_full_house,
)
goals = [
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
GoalFives(),
GoalSixes(),
Goal_is_three_of_a_kind(),
Goal_is_four_of_a_kind(),
Goal_is_full_house(),
]
game = Yahtzee(goals)