BattleRules InactivityTime Property Robocode Robot API for .NET
Returns the allowed inactivity time, where the robot is not taking any action, before will begin to be zapped. The inactivity time is measured in turns, and is the allowed time that a robot is allowed to omit taking action before being punished by the game by zapping.

When a robot is zapped by the game, it will loose 0.1 energy points per turn. Eventually the robot will be killed by zapping until the robot takes action. When the robot takes action, the inactivity time counter is reset.

The allowed inactivity time is per default 450 turns, but can be changed by the battle setup. So don't count on the inactivity time being 450 turns!

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version:

public long InactivityTime { get; }

Property Value

Type: OnlineInt64
See Also