summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2009-09-28 12:17:22 +1000
committerPeter Ward <peteraward@gmail.com>2009-09-28 12:17:22 +1000
commitbc47a4c3efe6006b42f1a4925a0994dc3e5093d1 (patch)
tree512d42921a570a2a31b5b54a3a11ba3f09f9e11f /snake.py
parent84c620ce93dbb9da9fc2328c13b8a48316641d4a (diff)
Added a compatibility layer for Gregsnakebots.
Diffstat (limited to 'snake.py')
-rwxr-xr-xsnake.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/snake.py b/snake.py
index f0bf46b..46f7db2 100755
--- a/snake.py
+++ b/snake.py
@@ -235,13 +235,13 @@ class SnakeEngine(object):
if __name__ == '__main__':
from bots import *
- from peter import *
+ from oldbot import BotWrapper
game = SnakeEngine(25, 25, 50)
game.add_bot(right_bot)
game.add_bot(random_bot)
game.add_bot(random_bounds_bot)
game.add_bot(random_square_bot)
- game.add_bot(peter_bot)
+ game.add_bot(BotWrapper('oldbots/peter.py'))
game.run()