
20 Jun
2014
20 Jun
'14
12:09 p.m.
Unless you're dealing with a board with millions of positions or more,
sparse matrices don't matter.
The array package has support for 2d arrays.
I've my own pretty fancy multi dim array tooling in the works, but for your
use case just use array package
On Friday, June 20, 2014, Chris Warburton
Corentin Dupont
javascript:;> writes: Instead of encoding the board, I would encode the position of the pieces: there is usually much less pieces than squares.
Possibly useful: http://en.wikipedia.org/wiki/Sparse_matrix
Cheers, Chris _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org javascript:; http://www.haskell.org/mailman/listinfo/haskell-cafe