Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Shoot only to fast incoming bullets
  • Loading branch information
fisadev committed Jul 8, 2012
1 parent 1499278 commit fe3cfda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bots/fisa.py
Expand Up @@ -89,7 +89,7 @@ def messageReceived(self, msg):
future_my_pos = predict_pos(self.pos, self.vel, 0.1) future_my_pos = predict_pos(self.pos, self.vel, 0.1)
distance = self.pos.distance(b.position) distance = self.pos.distance(b.position)
future_distance = future_my_pos.distance(future_b_pos) future_distance = future_my_pos.distance(future_b_pos)
if distance > future_distance: if distance - future_distance > 3:
incoming.append((future_distance - distance, b)) incoming.append((future_distance - distance, b))


if incoming: if incoming:
Expand Down

0 comments on commit fe3cfda

Please sign in to comment.