Bug? Level: Cloudrip Brawl

Screenshot 2022-07-14 18.37.36

i have not even finished writing my code, the program runs by itself, and now i have to wait a day to do it again=(

then the know-it-all ducky comes in and tells me i have something wrong where there is NOTHING EVEN THERE!
I am upset, and fustrated

while True:
    flag = hero.findFlag()
    enemy = hero.findNearestEnemy()
    if flag:

i maen there is nothing wrong except that i havent put the enemy = hero.findNearestEnemy() into action???

my armor is here

its the ducks fault, no one likes duck, #HateOnDuck

check if ur flag has the pickUpFlag abbility

flag = hero.findFlag(“green”) / hero.findFlag(“black”) / hero.findFlag(“violet”)

You need the colour :slight_smile:

Also try deleting the second line at the end where the error is. It probably won’t do anything but Python’s a bit fussy about blank lines and indentation and all that.

(Mark this as the solution and add fixed ( e.g. “[FIXED]”) to the title if it fixes the problem!)

1 Like

You actually don’t, and yes, do delete the last line, Python is picky about blank things and spaces


thx @moonwatcher but this program shouldn’t run itself, while im in the middle of programming it, and then have to wait A DAY!

did u press Shift + Enter? if so, that may be why
and if u pressed Ctrl/Command + Shift + Enter, it submits it btw…

1 Like

Yeah, don’t press what Ritic said above, and it shouldn’t be able to sumbit without you doing something, so you probably pressed shift accidentally when using ctrl+enter or smth