The author describes the algorithms as well as providing code in Ruby. For fun I wrote the code in Java since I don't know Ruby. The author does a very good job of describing the purpose of each line of Ruby, along with a textual description what the algorithm does so it is not very difficult to keep up. At the same time I'm writing a maze game, Operation Rescue, that transverses the mazes I'm creating.
This is a book I highly recommend for anyone who wants to have fun coding again!
Go buy it!