My Little Ruby Valentine (#192)


The three rules of Ruby Q.:

  1. Please do not post any solutions or spoiler discussion for this
    quiz until 48 hours have elapsed from the time this message was

  2. Support Ruby Q. by submitting ideas and responses
    as often as you can! Visit:

  3. Enjoy!

Suggestion: A [QUIZ] in the subject of emails about the problem
helps everyone on Ruby T. follow the discussion. Please reply to
the original quiz message, if you can.


My Little Ruby Valentine (#192)

Write a program that presents a Valentine’s day card. You may wish to
present text with a design, image or some colorful ASCII. There are no
formal requirements, you may choose to make it as simple, complex, or
creative as you like.

There was no response to this week’s quiz on the mailing list, but
like a ray of hope peeking out through dark clouds there was one

ruby -e ‘puts [[3,3],9,9,7,5,3,1].map{|t|[t].map{|n|"“*n}.join(”

(posted via Twitter:

I will summarize my feelings with a modified version of Ryan’s solution: