CodeCombat - Recruiting queue Help

Well, neutrals is a list, so neutrals.id does not exist. You have to use the first name from that list: use an index.

Further on, you have a hero.findEnemy() statement, which is again incorrect and incomplete. It should be an assignment, like neutrals = hero.findEnemies() (not findEnemy) if it’s needed at all.

Cheers

ps: oh yes, and next time format your code properly, between three backticks, as described in the FAQ

1 Like