02.12.2014

BattleRunner in C# running C++ robots

posted by Karsten

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.

16

 

Change the Target Framework to 4.5.

17

 

 

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.

18

Share

Place your comment

Please fill your data and comment below.
Name
Email
Website
Your comment