Discussion:
Running own robot from externally started robocode
Deng Dehao
2012-01-12 08:19:15 UTC
Permalink
Hi there!

I have created a robot.

With the path to the class file correctly set, able to run it when Robocode is manually started.

However, not able to detect the same robot when Robocode is started from a Java program.

Need to start Robocode externally because need to get it to run for several battles.

Need help on locating own robot when Robocode is started externally.

Any help is appreciated. Thanks a lot!



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
Robocode-***@yahoogroups.com
Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
flemmingnlarsen
2012-01-14 23:29:38 UTC
Permalink
In order to start Robocode from an external Java program you need to use the RobocodeEngine from the robocode.control package. This way you can control Robocode and start battles etc. from the Java program.

Take a look at the Example section on this page, which gives an example of how to use the RobocodeEngine:

http://robocode.sourceforge.net/docs/robocode/index.html?robocode/control/RobocodeEngine.html

Cheers,
- Flemming
Post by Deng Dehao
Hi there!
I have created a robot.
With the path to the class file correctly set, able to run it when Robocode is manually started.
However, not able to detect the same robot when Robocode is started from a Java program.
Need to start Robocode externally because need to get it to run for several battles.
Need help on locating own robot when Robocode is started externally.
Any help is appreciated. Thanks a lot!
------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Robocode/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/Robocode/join
(Yahoo! ID required)

<*> To change settings via email:
Robocode-***@yahoogroups.com
Robocode-***@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
Robocode-***@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/

Loading...