From 833f87ebba90e6c2d3cb386b2d51c3d113d98a54 Mon Sep 17 00:00:00 2001 From: Peter Ward Date: Sat, 18 Oct 2014 12:57:42 +1100 Subject: dump of random stuff from This commit should really be re-done, better. --- up_bot.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 up_bot.py (limited to 'up_bot.py') diff --git a/up_bot.py b/up_bot.py new file mode 100644 index 0000000..4b2b403 --- /dev/null +++ b/up_bot.py @@ -0,0 +1,5 @@ +def up_bot(whoami, state): + # Get the number of robots you control. + n_robots = len(state.robots_by_player[whoami]) + # Tell them all to go up. + return 'U' * n_robots -- cgit v1.2.3