diff options
Diffstat (limited to 'pyglet_snake.py')
-rwxr-xr-x | pyglet_snake.py | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pyglet_snake.py b/pyglet_snake.py index 10e4a3d..79ae047 100755 --- a/pyglet_snake.py +++ b/pyglet_snake.py @@ -108,14 +108,16 @@ class PygletSnakeEngine(SnakeEngine, pyglet.window.Window): pyglet.app.run() if __name__ == '__main__': - from bots import * + from bots import random_bounds_bot, random_square_bot from oldbot import BotWrapper - - game = PygletSnakeEngine(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(BotWrapper('oldbots/peter.py')) + from peter_bot import peter_bot + + game = PygletSnakeEngine(25, 25, 50, results=True) +# game.add_bot(random_bounds_bot) +# game.add_bot(random_square_bot) + for i in xrange(0): + game.add_bot(BotWrapper('oldbots/peter.py')) + for i in xrange(1): + game.add_bot(peter_bot) game.run() |