summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py
index d87eb3c..a74f5b4 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ import gui
import stats
from subscriber import DummySubscriber
from interval_utils import *
-from strategy import *
+from pathfinding import PathfindingTesterStrategy
# global vars
sub = DummySubscriber()
@@ -44,7 +44,7 @@ c.player.nick="test cell pls ignore"
gui.set_client(c)
# initialize strategy
-strategy = Strategy(c)
+strategy = PathfindingTesterStrategy(c)
# main loop
while True:
@@ -55,7 +55,7 @@ while True:
if len(list(c.player.own_cells)) > 0:
target = strategy.process_frame()
- if gui.bot_input:
+ if gui.bot_input and target != None:
c.send_target(target[0], target[1])
stats.log_pos(c.player.center)