[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:
http://mult.ifario.us/articles/2006/10/25/solitaire-cipher-in-haskell
Full source is linked from the entry, or look here:
http://mult.ifario.us/files/solitaire.hs
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
http://mult.ifario.us/
More information about the Haskell-Cafe
mailing list