-
Notifications
You must be signed in to change notification settings - Fork 37
Turn two is skipped (?) #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting this issue. 👍I will have a look into this later. When creating the sample bots, I saw this behavior once in a while. To me, it looks like some network latency in the beginning when the bot(s) are starting up. Perhaps the WebSocket client needs to "warm-up" to avoid this issue, and the server might give the bots like 10x more time the first 5-10 turns to get up to speed. Anyways. Since Robocode Tank Royale (RTR) is network-based (web-socket), there is no 100% guarantee that a bot intent will be sent from a bot and received by the server within the time limit for all turns. (I assume that all packages will eventually be sent and received on WebSocket since it is TCP-based). |
Hi @dEgolf , Note that your bot might skip turns. So you can add a OnSkippedTurn event handler and e.g. write to the console like: |
To my knowledge, this issue can now be closed as the problem with skipping the 2nd turn is fixed. |
Describe the bug
It seems like the second turn of my robot is skipped.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I would expect each robot to be able to act on each turn. In particular, I would expect the log file created above to include the line "It is turn: 2".
Screenshots

The start of the resulting log file:
Desktop (please complete the following information):
Windows 10
Java info:
openjdk version "11.0.14.1" 2022-02-08
OpenJDK Runtime Environment Temurin-11.0.14.1+1 (build 11.0.14.1+1)
OpenJDK 64-Bit Server VM Temurin-11.0.14.1+1 (build 11.0.14.1+1, mixed mode)
Additional context
I'm using v0.10.0 of robocode tank-royale.
The text was updated successfully, but these errors were encountered: