Write a program to simulate Game of Chance


One of the most popular games of chance is a dice game known as “craps”, which is played in casinos and back alleys worldwide. The rules of the game are straightforward:


A player rolls two dice. Each die has six faces contain 1, 2, 3, 4, 5 and 6 spots. After the dice have come to rest, the sum of the two spots on the two upward faces is calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is 2, 3 or 12 on the first roll (called “craps”), the player loses (i.e., the “house” wins). If the sum is 4, 5, 6, 8, 9, or 10 on the first roll, then that sum becomes the player’s “point”. To win, you must continue rolling the dice until you “make your point”. The player loses by rolling a 7 before making the point.



  1. write a loop to repeat the game if user choose to play again.
  2. print out the sum of two dice every time it “roll”
  3. print out whether player or house win the game.