Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while not reached_goal():
- if has_path_left():
- turn_left()
- if enemy_in_sight():
- fire()
- turn_right()
- elif has_path_right():
- turn_right()
- if enemy_in_sight():
- fire()
- turn_left()
- if has_path_ahead():
- forward()
- else:
- jump()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement