make colony state structure a bit different so that it's easier to query ant's position. Currently main key is ants guid, which makes it easy to query ants
{ :ant-id {:position .. :logic .. } }
but is needed is
{[x y] {:id ant-id :logic ..}}
so a bit of rewrite in tick,
Also maybe, this is a stupid OOP Idea to put all of state in one place. Seems like what I need is 2 maps
positions
{[x y] :ant-guid}
and ants colony
{:ant-guid logic-function } #...{potentially more as required
make colony state structure a bit different so that it's easier to query ant's position. Currently main key is ants guid, which makes it easy to query ants { :ant-id {:position .. :logic .. } }
but is needed is {[x y] {:id ant-id :logic ..}}
so a bit of rewrite in tick,
Also maybe, this is a stupid OOP Idea to put all of state in one place. Seems like what I need is 2 maps positions {[x y] :ant-guid}
and ants colony {:ant-guid logic-function } #...{potentially more as required