I did the level “Closing the Distance” and not happy with how I “passed” the level. I mean, I passed, but it’s VERY messy. This is what I did.
You should recognize this from the last level.
enemy = self.getNearestEnemy()
Now attack the variable.
Pretty much - I inched my way across the battle field. What’s a more proper way of writing this code?