
26 Oct
2006
26 Oct
'06
2:43 a.m.
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@gmail.com http://mult.ifario.us/