startBattleAsync

Starts a battle asynchronously and returns a BattleHandle for event observation and battle control.

The caller is responsible for monitoring BattleHandle.onGameEnded or calling BattleHandle.awaitResults to detect completion. The handle must be closed when done to release bot processes and allow subsequent battles.

Return

a handle for observing events and controlling the battle

Parameters

setup

battle configuration (game type, arena size, number of rounds, etc.)

bots

bots that participate in this battle

Throws

if the battle fails to start