[Haskell-cafe] river crossing puzzle

Bas van Gijzel nenekotan at gmail.com
Thu Oct 1 10:50:31 EDT 2009

Or you could look at my blog posts describing the implementation of the
Cannibals and Missionaries variant step by step.
First a naive approach and secondly using a state monad solution.




2009/9/28 pat browne <Patrick.Browne at comp.dit.ie>

> Hi,
> Does anyone know where there are any Haskell implementations of the the
> River Crossing  puzzle (AKA Farmer/Fox/Goose/Grain).
> There are several variations but the general ideas are explained at:
> http://en.wikipedia.org/wiki/River_crossing_puzzle
> http://en.wikipedia.org/wiki/Fox,_goose_and_bag_of_beans_puzzle
> I have found one at:
> http://www.shido.info/hs/haskell9.html
> Thanks,
> Pat
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091001/a82d669e/attachment.html

More information about the Haskell-Cafe mailing list