Paul Butcher wrote: > I recently got distracted by the Escape from Zurg puzzle - a problem > which has been used to teach students logic programming. I started > wondering whether I could come up with a nice solution in Ruby. > > The solution that I've come up with is (I think - you may think > otherwise :-) very nice indeed, and is a good demonstration of the power > and flexibility of Ruby. yeah, that's pretty nice Paul. I do like passing a block to Struct.new, never thought about that before, but it makes sense. State = Struct.new(:pos, :group) do *blah* end http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/267494 -- Posted via http://www.ruby-forum.com/.