In the level Munchkin Swarm I tried everything I knew and nothing worked. I looked at the previous levels and found nothing useful. I even copy pasted some commands and it still did not work…
Is it just me or is this really difficult?
Post your code + screenshot please
loop:
enemy = self.findNearestEnemy()
self.attack("Chest")
distance = self.distanceTo(enemy.pos)
if distance < 10:
self.cleave(enemy)
I suggest you to check the previous lvl again , focus more and you’ll figure it out i don’t want to give you codes every-time that would makes u stuck more and more ,
Actually I got it. Just missed a space in self.cleave in the if statement.