mhwombat / grid

Tools for working with regular grids/graphs/lattices.
Other
106 stars 12 forks source link

Add Directions #3

Closed rpglover64 closed 11 years ago

rpglover64 commented 11 years ago

It would be useful to be able to specify a path as e.g. [north, north, east, north].

mhwombat commented 11 years ago

That's a very good idea. I'll try to include that in the next release.

mhwombat commented 11 years ago

Directions are now supported. I haven't (yet?) added the ability to specify a path as a list of directions, but in the meantime I think you could accomplish the same thing with neighbour (not neighbours) and a fold.

rpglover64 commented 11 years ago

Awesome. Thanks.