Files
lab_dice/play.py
juddin2 8a3d6c00e4 Wrote a new goal in yahtzee_goals.py
I'm not sure if I underdtood it correctly. But, I found that it broke down a large piece of code into smaller pices like a code for dice, goals, and the game. Additionally, it also made it easier to test and change codes if needed.
2025-11-09 20:04:59 -05:00

18 lines
234 B
Python

from yahtzee import Yahtzee
from yahtzee_goals import (
GoalOnes,
GoalTwos,
GoalThrees,
GoalFours
)
goals = [
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
]
game = Yahtzee(goals)
game.play()