Yahtzee Robot

A Perl program I've been tinkering with that plays a game of Yahtzee. It now handles bonus chips for multiple Yahtzees. Refresh this page to see it play again.

[  9 ] Aces           [   9 ] *
[  2 ] Twos           [   2 ]
[ 18 ] Threes         [  18 ] *
[ 20 ] Fours          [  20 ] *
[  8 ] Fives          [   8 ]
[ 10 ] Sixes          [  10 ]
              *BONUS* [  35 ]
          Upper Total [ 102 ]
[  8 ] 3 of a Kind    [   8 ]
[ 28 ] 4 of a Kind    [  28 ]
[ XX ] Full House     [  25 ]
[ XX ] Sm Straight    [  30 ]
[ XX ] Lg Straight    [  40 ]
[ -- ] Yahtzee        [   0 ]
[ 16 ] Chance         [  16 ]
[ -- ] Chips          [   0 ]
          Lower Total [ 147 ]
       Combined Total [ 249 ]

DIE RESULTS (128 total):
2 6 2 5 5 1 2 2 1 1 4 5 1 3 2 3 5 4 1 5 2 4 3 3 1 4 6 6 3 6 4 1 6 3 5 6 6 3 4 5 5 2 1 2 6 6 5 5 3 4 1 3 1 2 5 2 1 1 6 2 1 5 2 4 2 4 6 6 3 6 6 4 4 2 3 2 3 6 4 2 5 3 3 5 1 1 2 4 1 5 4 4 1 2 4 6 1 5 3 5 4 4 6 4 1 6 5 3 1 6 2 5 5 6 1 1 6 4 3 4 6 6 2 1 5 5 6 4  

ROLL DISTRIBUTION:
  1 =  23  
  2 =  20  
  3 =  17  
  4 =  22  
  5 =  22  
  6 =  24