IRobocodeEngine RunBattle Method (BattleSpecification, String, Boolean)Robocode Control API for .NET
Runs the specified battle.

Namespace: Robocode.Control
Assembly: robocode.control (in robocode.control.dll) Version: 1.9.2.0
Syntax

void RunBattle(
	BattleSpecification battleSpecification,
	string initialPositions,
	bool waitTillOver
)

Parameters

battleSpecification
Type: Robocode.Control BattleSpecification
The specification of the battle to run including the participating robots.
initialPositions
Type: OnlineSystem String
A comma or space separated list like: x1,y1,heading1, x2,y2,heading2, which are the coordinates and heading of robot #1 and #2. So e.g. 0,0,180, 50,80,270 means that robot #1 has position (0,0) and heading 180, and robot #2 has position (50,80) and heading 270.
waitTillOver
Type: OnlineSystem Boolean
Will block caller till end of battle if set.
See Also