In my Evolutionary Computation class I have a (great) course work where the students develop Evolutionary Killerrobots in robocode. This is a great game in Java with a port to .NET. The website is well-documented for Java/C#.
For people who wants to develop robots in managed C++ the help is a bit old. This is intended as a guide, I have made the screenshots in Visual Studio 2013.
Begin by creating a project in VS.
Then select a C++ CLR Class Library project and give it an appropriate name. Press ok.
Once it has loaded, right click on the project (not the solution)
Select properties
Select “Common Properties”. Press References, and then “Add New References”
Click Browse to the left, and then Browse to the right.
Locate your robocode.dll file. It is usually in c:\robocode\libs. Press Add.
It will now show up under References.
Under “Configuration Properties” press General. Select “Common Language Runtime Support”. From the drop down choose “Safe MSIL Common Language Runtime Support (/clr:safe). Press ok
Go to the robot .cpp file. In my example it is called TestRobot.cpp
Create a robot. I always extend AdvancedRobot, because it gives me more possibilities. Build the project.
To test out the robot. Open Robocode and under options click Preferences.
Open the “Development Options” and press Add
Locate the folder where the robot is build. I only add Debug here, because I am only testing the robot. If I build a release I would also need to add the release build folder.
You can now find the robot when you set up a new battle.