mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 18:03:37 +02:00
Example client: Describe policy
This commit is contained in:
parent
e97cb92979
commit
f2d3cfad0d
1 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
# {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue