Dice Class Extra Credit (Assignment 4c)
Write a dice game to play with/against the computer. It can be an existing game like craps or Yatzee or one you make up. Be sure to explain the rules in the documentation at the beginning of the program. Each roll should be shown and the results explained. The rules for craps are below.
A player rolls two dice. Each die has six faces. These faces contain 1, 2, 3, 4, 5, and 6. After the dice have come to a rest, the sum of the spots on the two upward faces is calculated. If the sum is 7 or 11 on the first throw, the player wins. If the sum is 2, 3, or 12 on the first throw (called "craps"), the player loses. If the sum is 4,5, 6, 8, 9, or 10 on the first throw, 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.