Skip to content

Turn two is skipped (?) #8

Closed
Closed
@dEgolf

Description

@dEgolf

Describe the bug
It seems like the second turn of my robot is skipped.

To Reproduce
Steps to reproduce the behavior:

  1. 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()
  1. Create a battle with this testing robot and some other robot (I used Target).
  2. Let the battle run for a few seconds.
  3. 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:
turn two is skipped

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

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions