Python Forum
Trouble with simple roulette game
Thread Rating:
  • 2 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble with simple roulette game
#8
That's good, but I just noticed that you are using the 'is' operator for comparisons. You should only do that in certain cases, it doesn't check for two equal objects, it checks for the exact same object. For testing if two objects are equal, use == (double equals sign). It works here, but only in certain implementations of Python.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Trouble with simple roulette game - by Mekire - Oct-19-2017, 08:10 AM
RE: Trouble with simple roulette game - by Mekire - Oct-20-2017, 12:15 AM
RE: Trouble with simple roulette game - by ichabod801 - Oct-20-2017, 09:35 PM
RE: Trouble with simple roulette game - by Mekire - Oct-20-2017, 11:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple cards game blackpanda 3 4,354 Apr-10-2020, 08:46 PM
Last Post: TomToad
  Need help with simple guessing game! ghost0fkarma 2 2,898 Nov-03-2018, 01:19 AM
Last Post: ghost0fkarma
  Easy equipment system for simple game and problems with it naisyrk 3 3,404 Sep-01-2018, 10:05 AM
Last Post: Gribouillis
  Errors in simple text adventure game? ecloev 5 5,117 Apr-10-2018, 05:55 PM
Last Post: nilamo
  Simple Hangman Game Issue andrew95 2 4,481 Apr-02-2018, 02:24 PM
Last Post: andrew95

Forum Jump:

User Panel Messages

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