https://robocode.alphaworks.ibm.com/docs/robocode/robocode/Robot.html#getRoundNum()
...is wrong.
getRoundNum?() returns values from (0 to getNumRounds?()-1)
Wow. That really explains a strange bug I had with a division by zero some versions ago. I ended up adding 1 to what I thought was the round number, just to get rid of the problem. Felt a bit bad about such an ugly solution. Now it seems that it was the correct thing to do. =) I hope Mat fixes the bug in the documentation and not in the code. -- PEZ
He had intended to fix the doc... -- Ray Vermette
Oh, is there any way that you can check the total number of rounds in the battle? -- Jokester