(Game of Craps) Write an application that runs 1000
games of craps (Fig 6.9)
and answers the following questions:
- How many games are won on the
first roll, second roll, ..., twentieth roll, and after
the twentieth roll?
- How many games are lost on the
first roll, second roll, ..., twentieth roll, and after
the twentieth roll?
- What are the chances of winnning at
craps? [Note: You should discover that craps
is one of the fairest casino games. What do you suppose
this means?]
- What is the average length of a game
of craps?
- Do the chances of winning improve
with the length of the game?
This is tougher than some of the other exercises. If you
need some help, click here. My
solution will be available here
and here after the end of
next week’s class.