Closed
Description
Describe the bug
It seems like the second turn of my robot is skipped.
To Reproduce
Steps to reproduce the behavior:
- Create a testing robot that prints out the current turn in its Run member. Working in F#, I used the following code:
override this.Run() =
while(this.IsRunning) do
use writer = File.AppendText("log.txt")
writer.WriteLine("It is turn: " + (string this.TurnNumber))
this.Go()
- Create a battle with this testing robot and some other robot (I used Target).
- Let the battle run for a few seconds.
- Examine the log file "log.txt"
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.
Metadata
Metadata
Assignees
Labels
No labels