Craps Dice Game (Ex9-7, P.294)

Craps is a dice game played at many casinos. A player rolls a pair of normal six-sided dice.
  1. If the initial roll is 2, 3, or 12, the player loses.
  2. If the roll is 7 or 11, the player wins.
  3. Any other initial roll causes the player to "roll for point."
Write a program to simulate multiple games of craps and estimate the probability that the player wins. For example, if the player wins 249 out of 500 games, then the estimated probability of winning is 249/500 = 0.498.