From f2d3cfad0dd9589b21113ac3b1c6457b8b74ca27 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Fri, 23 Dec 2011 18:38:40 +0100 Subject: [PATCH] Example client: Describe policy --- client/example.pl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/example.pl b/client/example.pl index aacd0df..8a868b1 100755 --- a/client/example.pl +++ b/client/example.pl @@ -18,6 +18,15 @@ use warnings; $/ = "\r\n"; +# The example agent does most of its decision making in the +# take_action() subroutine. Its policy is to (in this order): +# +# * Attack any other agents encountered. +# * Eat flowers if in immediate vicinity. +# * Roam around semi-aimlessly, trying to look for food. +# +# This agent can be identified based on pheromone #65536. + # The example agent uses $state to hold its state structure. It is # a HASHREF with the following fields: # {