Su-Ting Chuang

This page is homework 2 for CIS700.

The game of craps is a dice game played by two players, X and Y. First X tosses the pair of dice. If the sum of the dice is 7 or 11, X wins the game. If the sum is 2, 3, or 12, Y wins. Otherwise, the sum is designated as the "point," to be matched by another toss. So if neither player has won on the first toss, then the dice are tossed repeatedly until either the point or a 7 comes up. If a 7 comes up first, Y wins. Otherwise, X wins when the point comes up.

computer is the shotter(player X), default: X= user, Y = computer

The money you want to bet:

Records of each roll (current game)

Records of winner (each game)

What has just been rolled

# of games won by user / computer:
0 / 0

The amount won or lost by the human player
0