summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2012-07-20 15:05:53 +1000
committerPeter Ward <peteraward@gmail.com>2012-07-20 15:05:53 +1000
commitff0c8eab701edc4312afdadbc6b142f1dbe545fc (patch)
treea105858196cff4e450d841bb95dd454e34ff1752
parenta445e24a2dd88de810ee4dce4e34894377d27c95 (diff)
Remove old template.
-rw-r--r--snakegame/template.py15
1 files changed, 0 insertions, 15 deletions
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()
-