Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Yahtzee
#2
That's not really the problem here. The problem is line 13: die = die1, die2, die3. Making that tuple is fine in and of itself, but later on (lines 27 and 29), you assume that as die1, die2, and die3 change, die will also change. This is not the case. Whatever the values of the three dice are at the beginning of the program, that's what they are for the rest of the program. Or maybe you're not making that assumption, and you just forgot to copy line 13 and put it after line 24, because that fixes your problem.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Yahtzee - by sdickey9480 - Oct-01-2019, 03:41 AM
RE: Yahtzee - by ichabod801 - Oct-01-2019, 12:26 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020