The game of craps is a dice game played by two players, X and Y. First X tosses the pair of dice. If the sum of the dice is 7 or 11, X wins the game. If the sum is 2, 3, or 12, Y wins. Otherwise, the sum is designated as the "point," to be matched by another toss. So if neither player has won on the first toss, then the dice are tossed repeatedly until either the point or a 7 comes up. If a 7 comes up first, Y wins. Otherwise, X wins when the point comes up.
Source: Schaum's Outline of Data Structures with Java by John R. Hubbard
Directions
Enter a bet, select if you want to be the shooter, and click "Start Game" to begin!
If you are the shooter, press "Roll" to roll the dice, until someone wins. Then start all over!