From c35db75eba1f67c6d6bbca9fefe7aaefb6b6d6e9 Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Sun, 29 Jul 2012 23:43:29 +1000 Subject: Add start of tutorial. --- docs/print_bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 docs/print_bot.py (limited to 'docs/print_bot.py') diff --git a/docs/print_bot.py b/docs/print_bot.py new file mode 100644 index 0000000..8352aec --- /dev/null +++ b/docs/print_bot.py @@ -0,0 +1,9 @@ +def print_bot(board, position): + print position + print board + +if __name__ == '__main__': + from snakegame.engines.pyglet import PygletEngine + engine = PygletEngine(3, 4, 3) + engine.add_bot(print_bot) + engine.run() -- cgit v1.2.3