Need help on program!!!

Darth Haggis scpetit at
Fri Dec 3 19:15:06 CET 2004

I need help writing a program....

You are to write a python program to accomplish the following:

  a.. Play a dice game of Craps using a random number generator to simulate
the roll of the dice, the code for the rolling of the dice should take place
in a user written module named rolldice.
  b.. The rules of the game are as follows:
    a.. 1st roll, a score of 7 or 11 wins.
    b.. 1st roll, a score of 2, 3, or 12 loses.
    c.. 1st roll, any number other than those listed above becomes the goal
number, you must keep rolling until you roll the goal number again.  If a 7
is rolled before you goal number, you lose.

Make the game continuous, until you tell it to stop.  You can bet the same
amount, or change you bet after each win or loss.  Print the results of each
roll and the running total of winnings or loses.

plz help!!!


More information about the Python-list mailing list