Code Arena - Help

Hunter vs Prey Bot Guide

Welcome to Code Arena!

Your goal as prey is to avoid being tagged by the hunters until time runs out.

As hunters, your goal is to tag all prey before time runs out.

When a hunter comes within one step of a prey, the prey turns into a hunter.

Your bot function:


def step(game_state):
    return actions  # list of moves for your units
    

Game state has, at minimum, keys:

Actions:

Example bot:


def step(game_state):
    my_units = game_state[game_state['role']]
    return ['N' for unit in my_units]