Coders strike back Java input not working

this is my code for reading inputs:

int x = in.nextInt(); // x position of your pod
int y = in.nextInt(); // y position of your pod
int nextCheckpointX = in.nextInt(); // x position of the next check point
int nextCheckpointY = in.nextInt(); // y position of the next check point
int nextCheckpointDist = in.nextInt(); // distance to the next check point
int nextCheckpointAngle = in.nextInt(); // angle to the next check point

but the nextCheckpointX and nextCheckpointY are always jumping around. help is appreciated

Are you by any chance still doing the first tutorial mission?

If so, take a very close look at the output statement…

no I got past that (but it did take me a little to figure out that X and Y were switched :laughing:)

did take me a little to figure out

Me too, quite a lot, hence my question :slight_smile:

Anyway, can’t replicate that. Did you System.err.println(nextCheckpointX + " " + nextCheckpointY); to see when they change and to what they change?
You can link directly to a replay, like this: https://www.codingame.com/replay/371287105 (unfortunately without stderr msgs)
But with the map parameters others can test the same setup.