Hi Amy,

thank you for your nice package. While I used it I wrote a function that calculates all edges between all (neighboured) tiles in a grid. I though it could of interest for somebody else:

http://hpaste.org/74520

Tested for rectangular and triangular grids. Still have the feeling it could be done much simpler!?

Best,
Johannes

On 06/09/12 10:42, Amy de Buitléir wrote:
I'm happy to announce a new package called grid:

     http://hackage.haskell.org/package/grid
     https://github.com/mhwombat/grid/wiki (wiki)

Grid provides tools for working with regular arrangements of tiles, such as
might be used in a board game or self-organising map (SOM). Grid currently
supports triangular, square, and hexagonal tiles, with various 2D and toroidal
layouts. If you need a tile shape or layout that isn't currently provided,
please let me know. See Math.Geometry.Grid for an example of how to use the
package. Suggestions for improvement are welcome.


_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe



_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to