- Home /
Question by
balfire · Jul 08, 2017 at 10:08 AM ·
agentterrain gen
Terrain Generation using agents
How can i have a large number of autonomous agents working at the same time on the same array?
Basically i set the size of grid, and the number of tokens. I also set the limit of how many moves a single agent can make(consume 1 token per move). If the amount if tokens is larger than the token limit of a agent then the agent splits into 2 agents. It would be good that once the agent consumes all tokens it then dies.
Should i use object pool for this or how can i make it ?
Comment