i have a problem in reward and ruination.all is good , but , the third time my artillery stop shooting.here is my code:
while True:
enemy = self.findNearest(self.findEnemies())
if enemy:
enemyPos = enemy.pos.x + " " + enemy.pos.y
self.say("Enemy at " + enemyPos)
gem = self.findNearest(self.findItems())
if gem:
gemPos = gem.pos.x + " " + gem.pos.y
self.say("Gem at " + gemPos)
all help will be appreciate.