Advertisement
Guest User

Untitled

a guest
Jan 16th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. def lurcker(lurck, game, frontcourt):
  2. holder = enemey_capsule(game)
  3. enemy_base = game.get_enemy_mothership()
  4. if holder:
  5. print lurck
  6. return
  7. for lu in lurck:
  8. dst = avg(frontcourt).distance(enemy_base)-holder.distance(enemy_base)
  9. print dst
  10. if lu.can_push(holder) and abs(dst) + game.push_distance < game.push_range:
  11. lu.push(holder, avg(frontcourt))
  12. else:
  13. lu.sail(lu.location.towards(holder, game.push_range))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement