generated from mwc/lab_dice
15 lines
509 B
Python
15 lines
509 B
Python
from yahtzee import Yahtzee
|
|
from yahtzee_goals import (
|
|
GoalOnes, GoalTwos, GoalThrees, GoalFours, GoalFives, GoalSixes,
|
|
GoalThreeOfAKind, GoalFourOfAKind, GoalFullHouse,
|
|
GoalSmallStraight, GoalLargeStraight, GoalYahtzee, GoalChance
|
|
)
|
|
|
|
goals = [
|
|
GoalOnes(), GoalTwos(), GoalThrees(), GoalFours(), GoalFives(), GoalSixes(),
|
|
GoalThreeOfAKind(), GoalFourOfAKind(), GoalFullHouse(),
|
|
GoalSmallStraight(), GoalLargeStraight(), GoalYahtzee(), GoalChance()
|
|
]
|
|
|
|
game = Yahtzee(goals)
|
|
game.play() |