Been trying to hack at this problem for a while now…
Can anyone guide me what I am missing? Answer doesn’t have to be overt, but this is driving me Ape…
Peons are trying to steal your coins!
Write a function to squash them before they can take your coins.
----coin = hero.findNearestItem()
Write the attackEnemy function below.
Find the nearest enemy and attack them if they exist!
enemy = hero.findNearestEnemy()
attackEnemy() # ∆ Uncomment this line after you write an attackEnemy function.