summaryrefslogtreecommitdiff
path: root/strategy.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-25 00:23:03 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-25 00:23:15 +0200
commit831445ee305ffef18504e825646cf8e352c48385 (patch)
tree368581d5fb45988681407c23de36812bfaa752f1 /strategy.py
parentdc0af643b64619a6898fd0c74be1407e73c0fb76 (diff)
update friend list, remove viruses
Diffstat (limited to 'strategy.py')
-rw-r--r--strategy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/strategy.py b/strategy.py
index d0f8583..6ca383f 100644
--- a/strategy.py
+++ b/strategy.py
@@ -3,7 +3,9 @@ from interval_utils import *
import gui
import random
-friendly_players=["Windfisch","windfisch","Cyanide","cyanide"]
+friendly_players=["Windfisch","windfisch","Cyanide","cyanide"] +\
+ ["Midna","Nayru","Farore","Din","Ezelo","Navi","Zelda","Tetra","Link","Ciela","Linebeck","Salia","Epona","Shiek"] +\
+ ["Vaati","Ganon","Ganondorf","Ghirahim","Agahnim"]
class Strategy:
def __init__(self, c):
@@ -111,7 +113,7 @@ class Strategy:
my_smallest = min(self.c.player.own_cells, key=lambda cell : cell.mass)
my_largest = max(self.c.player.own_cells, key=lambda cell : cell.mass)
- friendly_cells = list(filter(lambda c : c.is_virus or c.name in friendly_players, self.c.world.cells.values()))
+ friendly_cells = list(filter(lambda c : c.name in friendly_players, self.c.world.cells.values()))
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))