Craps Python Code

Beginner coder and having some trouble with a while loop for this assignment making a simple craps game. This is what I have so far...

  1. Craps Game Python Code
  2. Blackjack Python Code Example
  • 5 Contributors
  • forum5 Replies
  • 2,580 Views
  • 1 Day Discussion Span
  • commentLatest PostLatest Postby snippsat
Craps Python Code

Recommended Answers

I think you should also call your main function ;) Luckyly the sum can not be the 6-tuple of numbers as the sum or point variables do not change inside the while at line 14. sum is also bad name for variable as it is used for function to do …

At the bottom of this description you can find our code. Be sure to like, share and comment to show your support for our tutorials. Craps in Python Part 2: Program - Duration: 21:52. Question: In Python Please. CODE FOR CRAPS.PY ' File: Craps.py Project 6 This Module Studies And Plays The Game Of Craps. Refactors Code From Case Study So That The User Can Have The Player Object Roll The Dice And View The Result. ' From Die Import Die Class Player(object): Def init(self): 'Has A Pair Of Dice And An Empty Rolls List.'

Craps Python CodeJump to Post

What is the while loop supposed to do?? Right now it just prints. Note that

Craps Python Code

will never be True because you are comparing an integer and a tuple.

Jump to Post

All 5 Replies

Craps Game Python Code

I think you should also call your main function ;) Luckyly the sum can not be the 6-tuple of numbers as the sum or point variables do not change inside the while at line 14. sum is also bad name for variable as it is used for function to do sum of sequence. Line 21 does nothing

Blackjack Python Code Example

Editedby TrustyTony