generated from mwc/lab_dice
30 lines
443 B
Python
30 lines
443 B
Python
from yahtzee import Yachtzee
|
|
from yahtzee_goals import (
|
|
GoalOnes,
|
|
GoalTwos,
|
|
GoalThrees,
|
|
ThreeOfAKind,
|
|
FourOfAKind,
|
|
FullHouse,
|
|
SmallStraight,
|
|
LargeStraight,
|
|
Yahtzee,
|
|
Chance
|
|
)
|
|
|
|
goals = [
|
|
GoalOnes(),
|
|
GoalTwos(),
|
|
GoalThrees(),
|
|
ThreeOfAKind(),
|
|
FourOfAKind(),
|
|
FullHouse(),
|
|
SmallStraight(),
|
|
LargeStraight(),
|
|
Yahtzee(),
|
|
Chance()
|
|
]
|
|
|
|
game = Yachtzee(goals)
|
|
game.play()
|