You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the problem this feature will solve?
Currently the connections of Cell are stored as a list in _connections. While developing cell space, it was suggested to replace this with a dict with named connections. This would make it possible to get the cell to, e.g., the left or right, top or bottom in case of a von Neumann grid. Once connections are named, all kinds of other movements over the cell space are easily expressed.
For example, it becomes trivial to retrieve all cells on a diagonal in a Moore grid.
# within an agent classstartcell=self.cellcell=Nonediagonal= []
whilecellisnotstartcell:
cell=cell.connections['top_left']
diagonal.append(cell)
Describe the solution you'd like
The largest challenge is to come to a clear naming of the connections. This is likely to be different across OrthogonalMooreGrid, OrthogonalVonNeumannGrid, and HexGrid. Moreover, it might not work for Network, and become tricky for n-dimensional grids
The text was updated successfully, but these errors were encountered:
What's the problem this feature will solve?
Currently the connections of Cell are stored as a list in
_connections
. While developing cell space, it was suggested to replace this with a dict with named connections. This would make it possible to get the cell to, e.g., the left or right, top or bottom in case of a von Neumann grid. Once connections are named, all kinds of other movements over the cell space are easily expressed.For example, it becomes trivial to retrieve all cells on a diagonal in a Moore grid.
Describe the solution you'd like
The largest challenge is to come to a clear naming of the connections. This is likely to be different across OrthogonalMooreGrid, OrthogonalVonNeumannGrid, and HexGrid. Moreover, it might not work for Network, and become tricky for n-dimensional grids
The text was updated successfully, but these errors were encountered: