mirror of
https://github.com/brmlab/brmlife.git
synced 2025-08-02 09:53:38 +02:00
Example client: Use the conservative default values for attributes
This commit is contained in:
parent
4c1b54c993
commit
e97cb92979
1 changed files with 3 additions and 2 deletions
|
@ -188,9 +188,10 @@ if ($ARGV[1]) {
|
||||||
print "[ii] recovering agent $ARGV[1]\r\n";
|
print "[ii] recovering agent $ARGV[1]\r\n";
|
||||||
print $socket "agent_id $ARGV[1]\r\n";
|
print $socket "agent_id $ARGV[1]\r\n";
|
||||||
} else {
|
} else {
|
||||||
|
# Agent attributes - the default values:
|
||||||
print $socket "move 1.0\r\n";
|
print $socket "move 1.0\r\n";
|
||||||
print $socket "attack 1.0\r\n";
|
print $socket "attack 0.5\r\n";
|
||||||
print $socket "defense 1.0\r\n";
|
print $socket "defense 0.5\r\n";
|
||||||
}
|
}
|
||||||
print $socket "\r\n";
|
print $socket "\r\n";
|
||||||
print "[ii] agent created\r\n";
|
print "[ii] agent created\r\n";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue