summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.py b/main.py
index b8eb746..317a089 100644
--- a/main.py
+++ b/main.py
@@ -11,7 +11,7 @@ import nogui as gui # might be overridden later.
import stats
from subscriber import EnhancingSubscriber
from interval_utils import *
-from strategy import *
+from pathfinding import PathfindingTesterStrategy
import time
class Clock:
@@ -110,7 +110,7 @@ c.player.nick=nick
gui.set_client(c)
# initialize strategy
-strategy = Strategy(c, gui)
+strategy = PathfindingTesterStrategy(c, gui)
autorespawn_counter = 60
@@ -152,12 +152,13 @@ try:
autorespawn_counter-=1
fps = clock.getfps()
- if clock.newfps:
+ if False and clock.newfps:
print("FPS: %3d" % fps)
if fps < 24:
probs.report("low fps")
if fps > 50:
probs.report("high fps")
+
except ProblemException:
print("Exiting due to a problem such as low/high fps, network lags etc")