Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

[SOLVED] Useful competitors issue

Hey guys, Im having trouble with the useful competitor level.I think it has a bug. Its not letting me retrieve the last coin.Also it has a gem in there which my player retrieves, but it leaves the last coin.My code is-

while True:
enemy = hero.findNearestEnemy()
if enemy:
# Attack the enemy only if the type is NOT equal to “peon”.
if enemy.type != “peon”:

item = hero.findNearestItem()

 # Gather the item only if the type is NOT equal to "poison".
if item and item.type != "poison":


Hi @Mr.Wezi, welcome to the discourse.
You’re code is correct, please could you post a screenshot of the level screen, you equipment.

Hey Danny. Thanks a lot for your help. Fortunately the next day it worked,I guess there was a glitch at that time. But again thank you.