summaryrefslogtreecommitdiff
path: root/strategy.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-27 01:28:30 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-27 01:28:30 +0200
commita973a8986191a7a492a18a8f52d33bce9b821292 (patch)
tree985d97fbd160d18f9c61520338a302963e35f33c /strategy.py
parent52a1e369c35eed27841f21aa4efc5bc70f421d3a (diff)
s/99999/float(inf)/g
Diffstat (limited to 'strategy.py')
-rw-r--r--strategy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/strategy.py b/strategy.py
index c570d2d..2ea84e2 100644
--- a/strategy.py
+++ b/strategy.py
@@ -118,7 +118,7 @@ class Strategy:
if friendly_cells:
dist_to_friend = min(map(lambda c : (self.c.player.center-c.pos).len() - max(my_largest.size, c.size), friendly_cells))
else:
- dist_to_friend = 99999999
+ dist_to_friend = float('inf')
if dist_to_friend < 20 or my_largest.mass < 60:
if self.do_approach_friends: print("not approaching friends")