Bots starting position randomizing is not working

Fragment of a discussion from User talk:Beaming
Jump to navigation Jump to search

I've looked into the newest robocode source code, but couldn't find where the robot start position settings are — except for the tests used by robocode itself. Could you still remember what config it was to fix start positions?


Edit: got it, it just hides behind some direct access instead of accessors.

the config is "robocode.battle.initialPositions".

Thanks for mentioning that feature anyway!

Xor (talk)14:35, 27 July 2018

It is good that you find it. I already forgot what it was. Strange thing I did not remember to set it up, so some bug triggered it back then.

Beaming (talk)15:51, 28 July 2018

However, it doesn't work when set in robocode.properties.

And from source code I know that this config is valid only in battle files.

And with a bug of robocode, once you open intro.battle, then the first bot's initial position will be fixed as long as another battle file is not opened. Neither "New Battle" nor "Restart" works.

So did yours appear in robocode.properties?

Xor (talk)14:29, 31 July 2018

I think it was in a battle file. I was honing behaviour against a particular bot. I usually do this by setting a battle file.

Beaming (talk)14:50, 31 July 2018