The following is a brief summary of the rules for the game of craps played with a pair of six-sided dice:
The shooter rolls the dice. The first roll can have any of the following outcomes: 2,3 or 12 (craps) which is an immediate loss, 7 or 11 which is an immediate winner, or a "point" number which can be $4,5,6,8,9$, or 10 . When a point is rolled the dice are repeatedly rolled until either a total of seven results or the total matches the point. If a total of seven is rolled you lose, if point is rolled you win.
Write a computer version that rolls the dice when you press a key and otherwise follows the rules above. So your first roll will give you a win (total of 7 or 11), a loss (total of 2,3 or 12) or a point. If you have a point the computer will roll the dice on each key press until either you lose (because the roll totals 7 ) or you win (because you make your point).
When you emulate this game it is important that you actually emulate each of the pair of dice. Using a spinner with the numbers 1 to 12 would be a quite different game.