generated from mwc/lab_dice
36 lines
595 B
Python
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()
|