In this level, co-ordinates of the map should be removed as the goal can be achieved by an alternative strategy that is not emphasizing on the fact that self.attack pauses the program during its execution (as mentioned in the Game Menu). The alternative strategy is as follows:
alternative algorithm (not for those who haven't completed this yet)
- find enemies first.
- define an empty list.
- append each element of enemies into the new list if the x-position of the element is <= 42 (thus not beyond the mine)
- killing each enemy in this new list
Also: It is possible to jump the mine field and kill all of them… but shoes maybe expensive at this stage…
Since this is interfering with the goal of the level to teach how some commands pause a program while it is not completed (like self.attack), alternative strategy like what I wrote should be blocked.
Note: I realized and learned the goal now… despite being in glacier