Hunters Agent
-------------
Wraps the Hunters program in a natural-language processing agent to allow multiple simulation runs during the same interactive session.
huntersagent.zip
---
C:\trane\huntersagent>ruby huntersbot.rb
Hello
I have loaded C:/trane/huntersagent/huntersagent-api.yaml.
> start hunters
Hello and welcome to Hunters!
Enter x dimension of world (min 1, max 75): 10
Enter y dimension of world (min 1, max 22): 10
Your world has 100 total grid squares.
Enter the number of hunters you want: 10
Enter the number of food cells to place each generation: 10
Enter the value of each food cell: 10
Enter amount of food each hunter starts with: 10
Enter amount of food hunters consume each round: 10
Enter the material cost of attacking (in food): 10
Enter the utility offset of attacking: 10
Enter the utility offset of sharing: 10
Enter the utility offset of hoarding: 10
Enter the vision range of hunters (min 1): 10
Enter the maximum power an agent can have (min 0): 10
Enter the number of generations to run (min 1): 1
Enter the number of rounds in each generation (min 1): 1
Enter sleep delay (in milliseconds, min 0): 0
----------
+ + +
S S +
HS H
HH
++
+
H
+ H S
> show output
***Generation 1***
Stategies at beginning
----------------------
Number of Agents attacking: 0
Number of Agents sharing: 4
Number of Agents hoarding: 6
Stategies at end
----------------------
Number of Agents attacking: 0 (Alive: 0, Dead: 0) (Average Power: 0)
Number of Agents sharing: 4 (Alive: 4, Dead: 0) (Average Power: 4)
Number of Agents hoarding: 6 (Alive: 6, Dead: 0) (Average Power: 5)
Overall Average Power: 5
Total Survival Rate: 100%
> repeat last run
Hello and welcome to Hunters!
Enter x dimension of world (min 1, max 75): 10
Enter y dimension of world (min 1, max 22): 10
Your world has 100 total grid squares.
Enter the number of hunters you want: 10
Enter the number of food cells to place each generation: 10
Enter the value of each food cell: 10
Enter amount of food each hunter starts with: 10
Enter amount of food hunters consume each round: 10
Enter the material cost of attacking (in food): 10
Enter the utility offset of attacking: 10
Enter the utility offset of sharing: 10
Enter the utility offset of hoarding: 10
Enter the vision range of hunters (min 1): 10
Enter the maximum power an agent can have (min 0): 10
Enter the number of generations to run (min 1): 1
Enter the number of rounds in each generation (min 1): 1
Enter sleep delay (in milliseconds, min 0): 0
----------
S +
+
+
HH
+ S
++ H S
S
H
S
A
> show output
***Generation 1***
Stategies at beginning
----------------------
Number of Agents attacking: 1
Number of Agents sharing: 5
Number of Agents hoarding: 4
Stategies at end
----------------------
Number of Agents attacking: 1 (Alive: 1, Dead: 0) (Average Power: 10)
Number of Agents sharing: 5 (Alive: 5, Dead: 0) (Average Power: 5)
Number of Agents hoarding: 4 (Alive: 4, Dead: 0) (Average Power: 2)
Overall Average Power: 4
Total Survival Rate: 100%
> repeat last
Hello and welcome to Hunters!
Enter x dimension of world (min 1, max 75): 10
Enter y dimension of world (min 1, max 22): 10
Your world has 100 total grid squares.
Enter the number of hunters you want: 10
Enter the number of food cells to place each generation: 10
Enter the value of each food cell: 10
Enter amount of food each hunter starts with: 10
Enter amount of food hunters consume each round: 10
Enter the material cost of attacking (in food): 10
Enter the utility offset of attacking: 10
Enter the utility offset of sharing: 10
Enter the utility offset of hoarding: 10
Enter the vision range of hunters (min 1): 10
Enter the maximum power an agent can have (min 0): 10
Enter the number of generations to run (min 1): 1
Enter the number of rounds in each generation (min 1): 1
Enter sleep delay (in milliseconds, min 0): 0
----------
H + H
+ H
H
A HS +
S
+
+ S ++
+
A
> show output
***Generation 1***
Stategies at beginning
----------------------
Number of Agents attacking: 2
Number of Agents sharing: 3
Number of Agents hoarding: 5
Stategies at end
----------------------
Number of Agents attacking: 2 (Alive: 2, Dead: 0) (Average Power: 7)
Number of Agents sharing: 3 (Alive: 3, Dead: 0) (Average Power: 3)
Number of Agents hoarding: 5 (Alive: 5, Dead: 0) (Average Power: 7)
Overall Average Power: 6
Total Survival Rate: 100%
>