Craps Game


   In this game of Craps, you are playing against the computer.
       Basic instructions:
   1.  Select who will be the thrower.
   2.  Optionally make a bet
   3.  Click to roll the dice.

More Instructions

Options
1. By default, you are the thrower.
Check this box if you want the computer to be the thrower:

2. Make a bet: $


Play!

Die #1Die #2Total

Result of roll:

Statistics:
total games played
Your winsComputer winsYour Money
$
This will clear your statistics and start a new game

Help

 
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.

   Source: Schaum's Outline of Data Structures with Java by John R. Hubbard


First JavaScript assignment for CIS 700 - Summer 2007
by JoDe Beitler
due 7/9/2007 - 12 midnight