Aug-13-2018, 05:09 AM
(Aug-11-2018, 08:20 PM)Windspar Wrote: You didn't assign isFoodOnScreen to True. You did comparison.Yes I also caught that a few minutes after I made the post. Hopefully somebody here can learn from my mistake.def spawnFood(self): if self.isFoodOnScreen == False: self.position = [random.randrange(1,50)*10,random.randrange(1,50)*10] self.isFoodOnScreen == True # You did comparison