summaryrefslogtreecommitdiff
path: root/example-bots/up_bot.py
blob: 282d25be2332a9bd8b74e007ebc2513c6788e28b (about) (plain)
1
2
3
4
5
6
7
8
9
10
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