generated from mwc/lab_dice
36 lines
611 B
Python
36 lines
611 B
Python
from yahtzee import Yachtzee
|
|
from yahtzee_goals import (
|
|
GoalOnes,
|
|
GoalTwos,
|
|
GoalThrees,
|
|
GoalFours,
|
|
GoalFives,
|
|
GoalSixes,
|
|
Goal_Three_of_a_Kind,
|
|
Goal_Four_of_a_Kind,
|
|
GoalFullHouse,
|
|
GoalSmallStraight,
|
|
GoalLargeStraight,
|
|
GoalYahtzee,
|
|
GoalChance
|
|
)
|
|
|
|
goals = [
|
|
GoalOnes(),
|
|
GoalTwos(),
|
|
GoalThrees(),
|
|
GoalFours(),
|
|
GoalFives(),
|
|
GoalSixes(),
|
|
Goal_Three_of_a_Kind(),
|
|
Goal_Four_of_a_Kind(),
|
|
GoalFullHouse(),
|
|
GoalSmallStraight(),
|
|
GoalLargeStraight(),
|
|
GoalYahtzee(),
|
|
GoalChance()
|
|
]
|
|
|
|
game = Yachtzee(goals)
|
|
game.play()
|