diff options
author | Peter Ward <peteraward@gmail.com> | 2009-10-02 14:47:31 +1000 |
---|---|---|
committer | Peter Ward <peteraward@gmail.com> | 2009-10-02 14:47:31 +1000 |
commit | 855bdb25b92d36a5aa3b4430a9ef9d6956be8622 (patch) | |
tree | f08e76806071fa1925b359240968d3ad219b8bc7 /pyglet_snake.py | |
parent | 4aef934741f595589ad2b2fdae65341348960ec3 (diff) |
Commit.
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() |