These are the rules I'm using:
- WikipediaIn this version of the game, each round involves two or more players of equal status. A bet amount is agreed upon and each player puts that amount in the pile or pot. Each player then has to roll all three dice at once and must continue until a recognized combination is rolled. Whichever player rolls the best combination wins the entire pot, and a new round begins. In cases where two or more players tie for the best combination, they must have a shoot out to determine a single winner.
The combinations are similar to those described above, and can be ranked from best to worst as:
4-5-6
The highest possible roll.
"Trips"
Rolling three of the same number is known as rolling "trips". Higher trips beat lower trips, so 4-4-4 is better than 3-3-3.
"Point"
Rolling a pair, and another number, establishes the singleton as a "point." A higher point beats a lower point, so 1-1-3 is better than 6-6-2.
1-2-3
The lowest possible roll.
Any other roll is a meaningless combination and must be rerolled until one of the above combinations occurs.
In most cases there will be a single winner with the best roll.
Except triple 1's is in between a point of 1 and 1-2-3.
Right now I just create three variables r1, r2, r3 = getrand(1,6); and right now all I can think of is making alot of if/else statements. Is there a better way?
