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.

[ 10 ] Aces           [  10 ] *
[  0 ] Twos           [   0 ]
[  4 ] Threes         [   4 ]
[ 20 ] Fours          [  20 ] *
[ 12 ] Fives          [  12 ]
[ 26 ] Sixes          [  26 ] *
              *BONUS* [  35 ]
          Upper Total [ 107 ]
[ 10 ] 3 of a Kind    [  10 ]
[  0 ] 4 of a Kind    [   0 ]
[ XX ] Full House     [  25 ]
[ XX ] Sm Straight    [  30 ]
[ XX ] Lg Straight    [  40 ]
[ XX ] Yahtzee        [  50 ]
[ 12 ] Chance         [  12 ]
[ -- ] Chips          [   0 ]
          Lower Total [ 167 ]
       Combined Total [ 274 ]

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

ROLL DISTRIBUTION:
  1 =  27  
  2 =  22  
  3 =  19  
  4 =  24  
  5 =  14  
  6 =  26