[Haskell-cafe] Solitaire cipher

Paul Brown paulrbrown+haskell-cafe at gmail.com
Thu Oct 26 02:43:13 EDT 2006

I brute-forced my way through a solution to the Solitaire cipher quiz
challenge last night:


Full source is linked from the entry, or look here:


I think (i.e., know) that my list-based implementation of the
shuffling is somewhat inelegant, and I can imagine one that uses a
monad to encapsulate the state of the deck.  Nonetheless, I think I'm
happy with the data structure for the deck.

Comments / criticism welcome.

Paul R Brown
paulrbrown at gmail.com

More information about the Haskell-Cafe mailing list