1 2 3 4 5 6 7 8 9 10 11
import random def calculate_orders(whoami, state): orders = [] my_robots = state.robots_by_player[whoami] for robot in my_robots: # Make a random move for each robot orders.append(random.choice('ULDRP')) return orders