http://robowiki.net/w/index.php?title=Thread:Talk:RoboRumble/ThreadDeath_problem_and_large_amount_of_skipped_turns/reply_(2)&feed=atom&action=historyThread:Talk:RoboRumble/ThreadDeath problem and large amount of skipped turns/reply (2) - Revision history2024-03-28T18:46:04ZRevision history for this page on the wikiMediaWiki 1.34.1http://robowiki.net/w/index.php?title=Thread:Talk:RoboRumble/ThreadDeath_problem_and_large_amount_of_skipped_turns/reply_(2)&diff=51477&oldid=prevBeaming: Reply to ThreadDeath problem and large amount of skipped turns2017-09-07T20:45:15Z<p>Reply to <a href="/wiki/Thread:Talk:RoboRumble/ThreadDeath_problem_and_large_amount_of_skipped_turns/reply" title="Thread:Talk:RoboRumble/ThreadDeath problem and large amount of skipped turns/reply">ThreadDeath problem and large amount of skipped turns</a></p>
<p><b>New page</b></p><div>It does not look that item 5 is performed the way which would be reasonable (i.e. how you describe).<br />
<br />
Have a look [https://github.com/robo-code/robocode/blob/a69d8e85bd65b33d432110de4a7befe39009dee5/robocode.battle/src/main/java/net/sf/robocode/battle/peer/RobotPeer.java#L626 checkSkippedTurn()] where decision about penalty is done (I believe it is actually your code :). It does not check CPU time, it makes comparison based on the internal robocode Ticks.<br />
<code> int numSkippedTurns = (currentExecutionTime - lastExecutionTime) - 1;</code><br />
<br />
Robocode should call something to increase time (tic) inside of robot peer. If it does not do so for a bot, that bot will be punished. I still cannot find the part of the code where <code> time++ </code> logic is executed. These threads drive me nuts.<br />
<br />
So, I like your proposal to time the bot inside its thread.</div>Beaming