Fun Ruby Puzzles

Subscribe to Fun Ruby Puzzles 1 post, 1 voice

 
Avatar EldonAlameda Administrator 196 post(s)

This site has a few fun little Ruby puzzles to help you learn Ruby

http://curiouscoding.wordpress.com/2008/02/11/learning-ruby-with-ninety-nine-problems-1-10/

As always I’d encourage you to solve the puzzles yourself w/o looking at the answers. IRB can be a great friend for that.

Plus some of the solutions submitted don’t agree with my aesthetic sense, so I’d advise not to learn from them ;-)

You should be able to solve most of these initial puzzles with a single line. Only the last few required a little more.

Enjoy!