iterate methods....

in the x, y but no z please post, Thom was told to put that little bit of code in the iterate loop of the agent... i'm just wondering ho you would go this in for example the swarm.tz demo file that doesn't seem to have a specific + to iterate loop for the agent's class???

any words of wisdom???

cheer
gregger G

Re: iterate methods....

to clear up my spelling and grammar mistakes...

in the x, y but no z please post, Thom was told to put that little bit of code in the iterate loop of the agent... i'm just wondering how you would go about doing this in for example the swarm.tz demo file that doesn't seem to have a specific + to iterate loop for the agent's class???

any words of wisdom???

cheer again
gregger G

iterate methods....

You can just add one in yourself.

Or, in the specific case of the Swarm simulation, the actual method that does the work for the agents is called "fly" -- you could put your modifications there too. "fly" is there for purely historical reasons (the simulation worked somewhat differently when it was first written) and should probably be brought up to date replacing it with "iterate".

- jon

iterate methods....

jk you are so knowledgable

thanking you

cheer
gregger G

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.