def up_bot(whoami, state): # Get the number of robots you control. n_robots = len(state.robots_by_player[whoami]) # Tell them all to go up. return 'U' * n_robots