[Solved] I am stuck on level Drop the Flag Please help me (if you want to)

Hello I am stuck on level drop the flag and I can not collect all the coins. Are we supposed to submit and use the fags?

can i see your code please?

1 Like

yes

while True:
    flag = hero.findFlag();
    if (flag):
        hero.buildXY("fire-trap", flag.pos.x, flag.pos.y)
        hero.pickUpFlag(flag)
    else:
        item = hero.findNearestItem()
        if (item):
            itemPos = item.pos
            itemX = itemPos.x
            itemY = itemPos.y
            hero.moveXY(itemX, itemY)

In this level all that you have to do is submit and use flags, i think that the code is already provided.

Andrei

1 Like

oh ok thank you! 20 char

1 Like

ok yes the code is approved

1 Like

So have you finished the level, @Gabriel_Knight?

Andrei

1 Like

yes. thank you for helping me!

2 Likes

No problem! Anytime! And congratulations! :partying_face:

Andrei

2 Likes

congratulations then! :partying_face:

2 Likes

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.