lab_dice/play.py

36 lines
539 B
Python

from yahtzee import Yachtzee
from yahtzee_goals import (
GoalOnes,
GoalTwos,
GoalThrees,
GoalFours,
GoalFives,
GoalSixes,
ThreeOfAKind,
FourOfAKind,
FullHouse,
SmallStraight,
LargeStraight,
Yahtzee,
Chance
)
goals = [
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
GoalFives(),
GoalSixes(),
ThreeOfAKind(),
FourOfAKind(),
FullHouse(),
SmallStraight(),
LargeStraight(),
Yahtzee(),
Chance()
]
game = Yachtzee(goals)
game.play()