Readme Agent Done
This commit is contained in:
parent
f76b6cb4ab
commit
c35e338f25
|
|
@ -13,4 +13,10 @@ To save an agent or a rule do the same methodology.
|
|||
|
||||
Agent
|
||||
We implemented the sheep agent and the engineer agent
|
||||
To implement the
|
||||
The sheep being already written prior, we only needed to make basic modifications for our engineer agent.
|
||||
The idea we had was to create an agent that could create a series of glider, depending on the x and y values put at the end of engineer script, the direction of the glider can be tweaked.
|
||||
To do so, we removed all the rules concerning the movement of the sheep agent as well as the fact that it could disappear.
|
||||
Instead we've written lines that first created a glider each 25 ticks (we needed to make sure difference between each generation was large enough to make sure that there wouldn't be any collisions)
|
||||
And second we've written lines that rendered the right cells around the agent center point to make sure a glider was created. This is only a tiny example but several bigger structures could be created this way.
|
||||
NOTE: there was a problem somewhere in our code but I cannot pinpoint where, which reversed our x and y values. Originally the plan was to have a downward right glider but instead the result was a upward right.
|
||||
|
||||
Loading…
Reference in New Issue