Tuesday 7 March 2017

Start coding Bots (with simple AI)

If your one of the lucky people heading to Games Fleadh this week your going to run into robocode robot programmers. Decided to take a look at programming a bot that would make some elimentary decisions. To really get a robot to make intellegent robot decision trees would be required and another post on this subject is planned for later.

The first thing to do is setup the Robocode envirnment and Eclipse is recommended as the best way to edit Robocode Robots.

Robocode is event based system so rather than just reacting to events, each event is stored in an event list. The list can be traversed or sorted and actions taken based on the priority of each event. The code has been added to GitHub and comments are very welcome.

No comments:

Post a Comment