That code.golf page sure is hard to navigate – can you actually see people's solutions on there?
No! If you could, there would be no competition. :) Unfortunately, the original code golf competition web site in Perl, Python, Ruby and PHP is now gone from the web forever and they never published any solutions ... though you can see some of them in my PM code golf nodes (especially the six part series "The golf course looks great ...").

You can see the (handful) of published solutions for the 12 days of christmas game at the shinh golf link ... no surprise to see the leading one there starting with:

use Compress::Zlib;print uncompress 'x\xda\xe5 ...
Note that this solution would not have been accepted at the original code golf competition web site because modules were not allowed in those competitions - though you could use compression via the pack function as described in excruciating detail at Compression in Golf: Part I.

The tricky problem of how long to keep the competitor's solutions a secret is touched upon in The golf course looks great, my swing feels good, I like my chances (Part IV) in the "No Time Limit" and "Golfer Burn Out" sections ... and also (update) in Re^2: The golf course looks great, my swing feels good, I like my chances (Part I).

In our early golf games, run on the fwp and golf perl mailing lists, the solutions were kept secret for one week - see Dueling Flamingos: The Story of the Fonality Christmas Golf Challenge for an example of a classic one week Perl code golf competition (with cash prizes!) from the good old days.


In reply to Re^3: 12 days of Perl? by eyepopslikeamosquito
in thread 12 days of Perl? by johnaj

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.