5
\$\begingroup\$

The challenge is programming a program that prints following lyrics of Louis Armstrong's What A Wonderful World with as few characters as possible. The key is obviously kind of a 'compression'. I encourage to use and enhance ideas of previous answers, but please declare if you do so!

Rules: No information can be stored externally, everything must be contained in the code itself. Only ASCII characters allwed in the code. The text must be reproduced exactly. Output to console or text file.

I see trees of green, red roses, too,
I see them bloom, for me and you
And I think to myself
What a wonderful world.

I see skies of blue, and clouds of white,
The bright blessed day, the dark sacred night
And I think to myself
What a wonderful world.

The colors of the rainbow, so pretty in the sky,
Are also on the faces of people going by.
I see friends shaking hands, sayin', "How do you do?"
They're really sayin', "I love you."

I hear babies cryin'. I watch them grow.
They'll learn much more than I'll ever know
And I think to myself
What a wonderful world

Yes, I think to myself
What a wonderful world

PS: Why I think this is different to other encoded songs: Longer text; ASCII-only; a lot of repeating text/similar text.

EDIT: FEWEST of course. Ending will be 22th of June!

\$\endgroup\$
  • \$\begingroup\$ This is shorter than the rickroll, which was also ASCII-only with lots of repetition. The same techniques will be applicable. \$\endgroup\$ – Peter Taylor Jun 10 '14 at 10:00
  • \$\begingroup\$ Flawr, I think you mean as few characters as possible. not as many @PeterTaylor duplicate or not, this is a much better song than codegolf.stackexchange.com/q/6043/15599 On the other hand, if you like Rick Astley's music, check out Stacey Solomon's x-factor version of Wonderful World on youtube. (Nobody thought a girl with that personality would sing like that.) \$\endgroup\$ – Level River St Jun 10 '14 at 10:16
  • \$\begingroup\$ @steveverrill yes of course, thank you. Peter_Taylor As far as I understand you could use any UTF-8 characters in the rickroll. \$\endgroup\$ – flawr Jun 11 '14 at 6:34
  • \$\begingroup\$ @PeterTaylor As far as I understand you could use any UTF-8 characters in the rickroll? \$\endgroup\$ – flawr Jun 11 '14 at 12:06
1
\$\begingroup\$

Cobra - 585

Still many improvements to be made

class P
    def main
        i='I see '
        f='s of '
        w=' I think to myself\nWhat a wonderful world'
        a='\nAnd[w]'
        t=' the '
        s=' sayin\', "'
        print "[i]trees of green, red roses, too,\n[i]them bloom, for me and you[a].\n\n[i]skie[f]blue, and cloud[f]white,\nThe bright blessed day,[t]dark sacred night[a].\n\nThe colors of[t]rainbow, so pretty in[t]sky,\n are also on[t]face[f]people going by.\n[i]friends shaking hands,[s]How do you do?\"\nThey're really[s]I love you.\"\n\nI hear babies cryin'. I watch them grow.\nThey'll learn much more than I'll ever know\nAnd[w]\n\nYes,[w]"
| improve this answer | |
\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.