diff options
author | Peter Ward <peteraward@gmail.com> | 2014-10-18 12:57:42 +1100 |
---|---|---|
committer | Peter Ward <peteraward@gmail.com> | 2014-10-18 12:57:42 +1100 |
commit | 833f87ebba90e6c2d3cb386b2d51c3d113d98a54 (patch) | |
tree | 366f13421fd9766160d704a056072598a8efa88e /up_bot.py | |
parent | 01e53c672e239e95aa1102533b0a6cff8424000c (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.py | 5 |
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 |