[Haskell-cafe] Functional board games

Matthew Naylor mfn-haskell-cafe at cs.york.ac.uk
Mon Apr 21 14:20:23 EDT 2008


Hi Dougal,

> Does anyone know of functional-style implementations of
> chess/draughts/go/anything else that might give me ideas?

there's the Mate-in-N solver in the nofib suite:

  ftp://www.cs.york.ac.uk/pub/haskell/nofib.tar.gz

It takes quite a simple approach, representing the board as two lists
(white and black) of piece/square pairs, where a square is just a pair
of ints.

Matt.


More information about the Haskell-Cafe mailing list