summaryrefslogtreecommitdiff
path: root/up_bot.py
diff options
context:
space:
mode:
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