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/firstbot.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/firstbot.py (limited to 'docs/firstbot.py') diff --git a/docs/firstbot.py b/docs/firstbot.py new file mode 100644 index 0000000..b7abf4b --- /dev/null +++ b/docs/firstbot.py @@ -0,0 +1,8 @@ +def up_bot(board, position): + return 'U' + +if __name__ == '__main__': + from snakegame.engines.pyglet import PygletEngine + engine = PygletEngine(10, 10, 20) + engine.add_bot(up_bot) + engine.run() -- cgit v1.2.3