Are you using java 1.4 ? The message about "not scoring" Ball.Ball beacause of no action is normal it don't alter the game. But the main problem of SoccerRobocode is that it's too much complicated to implement a really valid tactics. There's a need of changing some rules so it can become "playable"(that was really a bad english, sorry) --Synnalagma |
You can perform (regular Robocode actions are valid) :
After this events the game will stop. A int getSide() methods will tell you where is your home. If getSide()==0 then your home is East wall (all the wall and 40 large) you must put the ball in the West wall else then your home is West and you must put the ball at East
http://robocoderepository.com/BotDetail.jsp?id=1571 Maybe someone can put it on this wiki
You must write one (and only one) CaptainBot? by extending the class and many SoccerBot? (you can use the same several time) Please note while there are change you must implement the following methods : public void initialise(): first method called and called only once
public void round(): This methods is enclosed in a while(finishCondition) so you must not have a while(true) (otherwise the game will never finish)
for both Captain and Soccer bot you can't subclass onMessageReceived?() (it's used by the game) but you can subclass onMessageReceivedSoccer?(same parameter) For Captain you can't subclass onDeath() but onDeathSoccer?(same parameter)
Then write a team file as usual The code is commented (I mean what each method does) so you can see what each method does or generate a javadoc
Thanks to FootBallDemo (I don't remember the exact name), it gave me the basic idea
Please : if you see english errors correct them
Please share any modifications you do to this code I don't know what should be the terrain size and the limit score (currently 300)
If some people are interested and find this fun (I still need to build a solid bot) I'll run a league (when we think all parameters are ready)
If you have any comments and/or suggestions and/or bug reports put them here. Synnalagma
It doesn't seem to work properly on my computer. I get te following error message:
Perhaps I haven't installed RobocodeGLV014 correctly?? --Dummy
Are you using java 1.4 ? The message about "not scoring" Ball.Ball beacause of no action is normal it don't alter the game. But the main problem of SoccerRobocode is that it's too much complicated to implement a really valid tactics. There's a need of changing some rules so it can become "playable"(that was really a bad english, sorry) --Synnalagma