I cant figure out the code for Oasis. I was wondering if anyone could either help me with it or could give me the code?
never mind, the code ended up being really simple:
# Move forward to reach the oasis,
# but move back to avoid nearby yaks.
loop:
enemy = self.findNearestEnemy()
if enemy and self.distanceTo(enemy) < 10:
# Move to the left by subtracting 10 from your X coordinate.
pass
else:
# Move to the right by adding 10 to your X coordinate.
pass
x = self.pos.x +10
y = self.pos.y
self.moveXY(x, y)