From ff0c8eab701edc4312afdadbc6b142f1dbe545fc Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Fri, 20 Jul 2012 15:05:53 +1000 Subject: Remove old template. --- snakegame/template.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 snakegame/template.py diff --git a/snakegame/template.py b/snakegame/template.py deleted file mode 100644 index 194b1a5..0000000 --- a/snakegame/template.py +++ /dev/null @@ -1,15 +0,0 @@ -from pyglet_snake import PygletSnakeEngine - -def your_name_here_bot(board, position): - x, y = position - mychar = board[y][x] - return 'U' - -# Test code to run the snake game. -# Leave the if statement as is, otherwise I won't be able to run your bot with -# the other bots. -if __name__ == '__main__': - p = PygletSnakeEngine(25, 25, 10) - p.add_bot(your_name_here_bot) - p.run() - -- cgit v1.2.3