I don’t know what I’m doing wrong. Here is the problem code:
if soldier != on:
hero.say(soldier.id)
Can someone please help me?
I don’t know what I’m doing wrong. Here is the problem code:
if soldier != on:
hero.say(soldier.id)
Can someone please help me?
can you please tell us what the problem is when you run your code?
if soldier != on: # here is the hidden fault
He’s comparing an object ( a soldier ) with a boolean value. Only check if on
( onCircle(soldier, circleRadius) ) is true or false
You’re Welcome @Fenith!