diff options
Diffstat (limited to 'example-bots/up_bot.py')
-rw-r--r-- | example-bots/up_bot.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/example-bots/up_bot.py b/example-bots/up_bot.py new file mode 100644 index 0000000..282d25b --- /dev/null +++ b/example-bots/up_bot.py @@ -0,0 +1,11 @@ +def calculate_orders(whoami, state): + orders = [] + + # Get the robots you control. + my_robots = state.robots_by_player[whoami] + + # Tell them all to go up. + for robot in my_robots: + orders.append('U') + + return orders |