Agent architecture for building Robocode players with SWI-Prolog
Vasile Alaiba, Armand Stefan Rotaru · 2008
Effective study of autonomous agents is a challenging activity, for researchers and programmers alike. In this paper we introduce a new agent environment built on top of the tank-simulation game Robocode. We consider this game a good choice for testing agent programming strategies and an excellent learning opportunity. We integrated SWI-Prolog into Robocode and built an architecture for writing agents with Prolog. Game generated events are translated by our framework into predicate invocations, allowing the agent to perceive the environment. An API to issue commands to the tank from Prolog acts as agentpsilas effectors. We tested our architecture by implementing a simple autonomous agent that uses a static strategy.