Chuck-a-luck is a game of chance where 3 dice are rolled and the player bets on what number they think the dice will roll too. If one or more dice roll to their number the player wins for each dice that lands. The game is easy to pick up, easy to play, but hard to win at.
This version of the game doesn?t include all the betting options that a player could encounter were they to meet this game in real life. There is also the option of placing a bet on a triple (all three dice landing any one number) with 30 to 1 payout odds if you win. There are also sometimes ?Big? offered where the player wins if the total of all the dice is 11 or higher and not a triple or ?Smalls? where the player wins if the total is 9 or less and not a triple or ?Fields? where the player wins if the total falls outside the range of 8 to 12, all paying out to even money. A challenge to the reader would be to add these betting options in as well as allow multiple bets.
Chuck-a-luck by R. Alan Monroe inspired by a BASIC game of the same name from ?More BASIC Computer Games? (c)1979 edited by David H. Ahl..

Download and Play
Download eBook page
Download the source code
June 13th, 2009 - 2:06 am
Another good reader challenge would be to add color :)
June 17th, 2009 - 7:45 pm
So Alan writes Under and Over, then sends me an e-mail saying it’d be easy to adapt it to Chuck-a-Luck. I said something about that sort of thing always being more complicated than one expects. Not 24 hours later he sends me this.
I’m gonna claim that was my plan the whole time.
Yeeeeah.
June 17th, 2009 - 8:33 pm
There’s actually a bug in this version. Wonder if anyone has spotted it yet :)
June 18th, 2009 - 8:46 am
…I… haven’t. I played the game till I lost, tho I admit I didn’t pay that close attention to my ledger.
Do you want to submit a fixed version?
June 18th, 2009 - 6:05 pm
The ends of lines 155 & 156 are setting the die1 variable rather than die2 and die3 respectively (This is only meaningful if the random number generator happens to hit numbers very near to 32767 during play).