lab_dice/play.py

22 lines
335 B
Python

from yahtzee import Yachtzee
from yahtzee_goals import *
goals = [
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
GoalFives(),
GoalSixes(),
ThreeofaKind(),
FourofaKind(),
FullHouse(),
SmallStraight(),
LargeStraight(),
YAHTZEE(),
Chance()
]
game = Yachtzee(goals)
game.play()