Python Forum
Two Dice Pig Game in Python 3.6 Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Two Dice Pig Game in Python 3.6 Help
#4
The error is there to help. If it's referenced before you define it, then you can either define it before you use it, or you can stop using it.

In this case, it's because you're setting Player1 = p1dice+p1dice2. Since you haven't rolled any dice yet, that doesn't make sense. Both player's starting scores should probably be zero.
Reply


Messages In This Thread
RE: Two Dice Pig Game in Python 3.6 Help - by nilamo - Oct-10-2018, 05:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Need some help with Dice Game for daughter in school OptX 2 1,970 Feb-12-2021, 08:43 PM
Last Post: BashBedlam
  regarding dice game hola123 4 2,410 Feb-10-2021, 11:00 PM
Last Post: hola123
  Two dice Game of Pig help elliemehl 2 4,263 Feb-14-2019, 01:19 AM
Last Post: woooee
  help with while loop on dice game sean5 2 4,240 Dec-14-2017, 07:24 PM
Last Post: nilamo
  dice game im stuck sylerr 3 4,459 May-12-2017, 10:50 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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