CS 0004 Project 2: Craps

Due: Wednesday, March 1st, 2006 11:59pm

Introduction

The game of craps is a game played with 2 dice. They are rolled together and their points are totaled. If you roll a 2, 3, or 12, you immediately lose. If you roll a 7 or 11, you immediately win. Any other value is called the point. You then must roll the 2 dice over until you roll the point again or you roll a 7. If you roll the point again, you win, if you roll 7, you lose.

Interface

 

A sample program can be downloaded from the website. See the screenshots below for example behavior:

 

 

 

What you need to do

 

Make a Craps program as shown above. One important thing that the program should do is to only display the point GroupBox when it is appropriate (i.e. when you are trying to roll point.)

 

Make sure it handles the 2 separate phases of the game correctly:

  1. The first roll
  2. Rolling point (if necessary after the first roll)

 

Hints and suggestions

 

 

Submission

 

Place your files into a zip folder as we did for the last assignment. The URL for submission is:

 

http://www.cs.pitt.edu/~jmisurda/submit/

 

It will go live at class time Tuesday (no submissions accepted prior to that.)

 

If you want help, make sure you see me before the deadline.

 

The username and password will again be cs0004 and vbrocks