CrapsGame

It was one of my homework. It's a game. Game rules:

  • Roll two dice
  • Sum of the spots on two upward faces is calculated
  • 7 or 11 on first throw player wins
  • 2, 3 or 12 on first throw player loses
  • 4,5,6,8,9,10 becomes players point
  • Player must roll his point before rolling 7 to win