summaryrefslogtreecommitdiff
path: root/up_bot.py
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2014-10-18 12:57:42 +1100
committerPeter Ward <peteraward@gmail.com>2014-10-18 12:57:42 +1100
commit833f87ebba90e6c2d3cb386b2d51c3d113d98a54 (patch)
tree366f13421fd9766160d704a056072598a8efa88e /up_bot.py
parent01e53c672e239e95aa1102533b0a6cff8424000c (diff)
dump of random stuff from <reboot>
This commit should really be re-done, better.
Diffstat (limited to 'up_bot.py')
-rw-r--r--up_bot.py5
1 files changed, 5 insertions, 0 deletions
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