posted by Karsten
No Comments
There is a nice example in C# where you can run battles automatically. This works nicely with both Java and C# robots, however to run C++ you need to do a few steps before it will run.
First navigate to your [robocode]\libs\control folder and open BattleRunnnerSample project in VS (spelling mistake intended). Once it has finished loading you need to open the solution’s properties. Right click the solution (not the project) and click Properties.
Change the Target Framework to 4.5.
After that you are good to go. Try and change one of the robots to “myCppRobot.CplusplusTestRobot” (namespace.classname) and run the code. You’ll see the robots fighting. If you want to speed things up you can change the visibility of the engine to false.