Extend CaptureAgent and implement chooseAction(gameState).
CaptureAgent
chooseAction(gameState)
Define createTeam(firstIndex, secondIndex, isRed) to return your agents.
createTeam(firstIndex, secondIndex, isRed)
Your agent will play as the Red team. Code runs in a secure sandbox.