lab_dice/play.py

22 lines
297 B
Python

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