summaryrefslogtreecommitdiff
path: root/example-bots/random.py
blob: e61ff15c58e77c9e4aaf915f9e079dc288edfe7b (about) (plain)
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