From 7daa5284f9eddf6d4b4e7838919e80ce25324bb0 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Sun, 25 Sep 2022 00:10:13 +1000 Subject: Lots of changes! --- example-bots/up_bot.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 example-bots/up_bot.py (limited to 'example-bots/up_bot.py') 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 -- cgit v1.2.3