# MiniYahtzee Project # Source code file: test3.py from miniyahtzee import MiniYahtzee from constants import * outcomes = [0, 0, 0, 0, 0] y = MiniYahtzee( ) for i in range(0, 1000000): y.roll_dice( ) y.classify( ) outcomes[y.roll_type] += 1 print("Number of NOTHING:", outcomes[NOTHING]) print("Number of PAIR:", outcomes[PAIR]) print("Number of STRAIGHT:", outcomes[STRAIGHT]) print("Number of TRIPLE:", outcomes[TRIPLE]) # Theoretical Results: #NOTHING 96/216 = 44.44% #PAIR 90/216 = 41.67% #STRAIGHT 24/216 = 11.11% #TRIPLE 6/216 = 2.27% # Ways to roll three dice: #6 * 6 * 6 = 216