lab_dice/play.py

36 lines
595 B
Python

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