The core can spawn one builder bot per round on any of the 9 tiles it occupies. Spawning costs one action cooldown.
# Spawn a builder on an empty core tilepos = c.get_position() # centre of the 3x3 corefor dx in range(-1, 2): for dy in range(-1, 2): target = Position(pos.x + dx, pos.y + dy) if c.can_spawn(target): c.spawn_builder(target) break