Jamis Buck wrote: > My solution is posted here: > http://www.jamisbuck.org/ruby-quiz-01-jamis-buck.zip Nice, I didn't know that #delete_at exists. It's a bit clearer than #slice! where it can be used. > I did it using Copland, both to demonstrate Copland, and to "test" > Copland (to see if I ran into anything that needed fixing or adding). > Although the assignment itself was really too small for IoC, it was > still fun. I just ended up with many tiny classes. :) Good idea -- I think it can also be used as a sample for IoC in general. > I implemented a few other keying algorithms: shuffle (which shuffles the > deck according to a given seed value) and reverse (which just reverses > the order of an unkeyed deck). Ah, I also implemented the shuffle one, but I didn't provide a way for specifying the seed so one would have to exchange the decks via Marshal or YAML with my solution. Regards, Florian Gross