lab_dice/play.py

30 lines
463 B
Python

from yahtzee import Yachtzee
from yahtzee_goals import (
GoalOnes,
GoalTwos,
GoalThrees,
GoalFours,
GoalFives,
GoalSixes,
GoalThreeOfAKind,
GoalFourOfAKind,
GoalFullHouse,
GoalChance
)
goals = [
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
GoalFives(),
GoalSixes(),
GoalThreeOfAKind(),
GoalFourOfAKind(),
GoalFullHouse(),
GoalChance()
]
game = Yachtzee(goals)
game.play()