Some way to specify where bots start on the field (and their heading), so I can test if my bot behaves correcly when starting in the corner, right next to the other bot, ect.
The question mark means "random". Omitting a parameter also means random.
If the position has already been taken or collides with another robot boundaries that has already "taken" the position, then the robot will be put on a random position.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1249353
Originator: NO
Can you give me an example of how to specify the initial position, heading etc.?
Logged In: NO
Ideali configurable via *.battle file. LuVar
Logged In: NO
I think this is consistent way...
robocode.battle.rules.inactivityTime=450
robocode.battle.selectedRobots=sample.Corners,sample.Fire,sample.MyFirstRobot,sample.SittingDuck,sample.Walls
robocode.battle.selectedRobots.Possitions=(10,13,230),(100,130,0),(77,13,1),(10,34,5),(77,13,230)
robocode.battleField.height=600
(x,y,headingAngle)
but conflicts like (10,10,0) (10,10,45) should be handled, input like () should be handled like random position etc.
My use of this feature will be in creating robots by evolutionary methods. (if they have same start position, it is easiest to learn them something :)
PS: I am new in robocode and I don't know, if this example is consistent...
Logged In: YES
user_id=1249353
Originator: NO
This sound reasonable, and I will of course implement in a comming version. :-)
Logged In: YES
user_id=1249353
Originator: NO
This feature has now been implemented in the comming Robocode 1.3 Beta.
Logged In: YES
user_id=1249353
Originator: NO
This feature has been added into Robocode 1.3 Beta.
The format is almost like you suggested. Here is and example:
(50,50,90),(100,100,?),?,(200,150),,(?),(30,?,180)
The question mark means "random". Omitting a parameter also means random.
If the position has already been taken or collides with another robot boundaries that has already "taken" the position, then the robot will be put on a random position.
Logged In: YES
user_id=1624049
Originator: NO
thanks :-)
Logged In: YES
user_id=1312539
Originator: NO
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).