Will onRobotDeath event miss due to skipped turns?
Fragment of a discussion from Talk:Robocode
← Thread:Talk:Robocode/Will onRobotDeath event miss due to skipped turns?/reply (4)
Jump to navigation
Jump to search
← Thread:Talk:Robocode/Will onRobotDeath event miss due to skipped turns?/reply (4)
Anyway, I see some alive bot not getting scanned for 10+ ticks (when you skip turns, that could be easy to happen), are you handling this case correctly?
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
Return to Thread:Talk:Robocode/Will onRobotDeath event miss due to skipped turns?/reply (5).
well, firing at some "ghost" when missing onRobotDeath is unavoidable. Anyway we could set different timer for radar & gun. e.g. for radar, choose 8k ticks, where k is large enough to avoid marking alive bots as dead. And for guns, use a small k, e.g. 1, to avoid shooting at targets that we don't have new information.