Hi there, i dont really know why but a statement wich i would guess should be actually true seems to be false or is this my false?
loop: coins = self.findItems() coinIndex = 0 # Schreibe dies in eine Schleife, die über alle Münzen läuft. coin = coins[coinIndex] while True: # Goldmünzen haben einen Wert von 3. if coin.value == 3: #this statement should be true shouldnt it? self.say("The code is working but im dumb") self.moveXY(coin.x, coin.y) coinIndex += 3 # Sammle nur Goldmünzen. else self.say("The statement is false")
Or do i kind of have to create a move to next coin as target thingy because it always targets the same coin wich is not a gold coin resulting that the condition is always false? If yes, how do i do that?