diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-28 18:57:00 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-28 18:57:00 +0200 |
commit | fd66690aa9c2dc429325891c906b97d5184bc5e0 (patch) | |
tree | c5b2b6ab9f4e85a062ff6730061c6060b148d99c /strategy.py | |
parent | e4b732abd4ea034f75645d333ff5b357d1b612e7 (diff) |
analyzing functions
Diffstat (limited to 'strategy.py')
-rw-r--r-- | strategy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strategy.py b/strategy.py index 1be22cf..21a06cf 100644 --- a/strategy.py +++ b/strategy.py @@ -164,7 +164,7 @@ class Strategy: except AttributeError: print("cannot calculate shoot angle, too few backlog") continue - # check if ejecting mass would feed one friend + # check if ejecting mass would feed a friend possibly_feedable_cells = list(filter(lambda c : can_feed(my_cell, c), self.c.world.cells.values())) possibly_feedable_cells.sort(key = lambda c : (my_cell.pos - c.pos).len()) |