I made all the rolls in yahtzee and got a score 294

This commit is contained in:
lfitchlee
2025-11-17 09:42:28 -05:00
parent eb1cee2006
commit 9b0e5424ae
3 changed files with 199 additions and 4 deletions

27
play.py
View File

@@ -1,15 +1,36 @@
from yahtzee import Yahtzee
from yahtzee_goals import (
GoalOnes,
GoalTwos,
GoalOnes,
GoalTwos,
GoalThrees,
GoalFours,
GoalFives,
GoalSixes,
GoalThreeOfAKind,
GoalFourOfAKind,
GoalFullHouse,
GoalSmallStraight,
GoalLargeStraight,
GoalYahtzee,
GoalChance,
)
goals = [
GoalOnes(),
GoalOnes(),
GoalTwos(),
GoalThrees(),
GoalFours(),
GoalFives(),
GoalSixes(),
GoalThreeOfAKind(),
GoalFourOfAKind(),
GoalFullHouse(),
GoalSmallStraight(),
GoalLargeStraight(),
GoalYahtzee(),
GoalChance(),
]
game = Yahtzee(goals)
game.play()