Andur's Game Solutions

Includes warmup problems minus anagrams, (very poorly written) Tower of Hanoi, and Mastermind with trivial AI (the game intentionally does not specify which slots are correct, only how many).
I see what you're doing here, and no question it totally works. Also, very nice variable naming and method abstraction--which makes all of this quite readable considering the unusual logic governing this method. That said, would it have been possible to simply compare elements of @code and @guess (i.e.: @code[1] == @guess[1]) without .duping them and without using them destructively? I think that could have been easier reading and a little more flexible.