Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Endangered Burl - Update?


I am having trouble with the “Endangered Burl” level. My code that I entered is below. In short, my charcter won’t even move. I’ve been stuck for a few days now. Can anyone help? Many thinks in advance.


    enemy = self.findNearestEnemy()
    if enemy:
        if enemy.type is 'munchkin':
        elif enemy.type is 'thrower':
        elif enemy.type is 'burl':
            self.moveXY(22, 47)
            self.say("I'm never going near that thing.")


Try to use self.say(enemy.type) and see if this type matches any of the types you specified. Be aware that Upper-/lowercase matters.


Thank you for your help. After I followed your advice, I was given an error message that I had not equipped the proper glasses to find my nearest enemy.

Onward and upward!


Advanced glasses need self.findNearest(self.findEnemies()) (similar for items).