develooper Front page | perl.fwp | Postings from December 2001

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
Anthony J. Breeds-Taurima
Date:
December 9, 2001 17:25
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
Pine.LNX.4.33.0112100916570.3632-100000@thor.cantech.net.au
On Sun, 9 Dec 2001, Jonathan E. Paton wrote:

> > Apologies if I have missed any other high-flying novices;
> > if you did well and this is your first ever golf game,
> > please let the list know.
> 
> Me!  It's my first Perl Golf Golf game... and I need to
> avoid missing some simplier solutions.  In particular, the
> best "wc.pl" solution:
> 
> #!/usr/bin/perl
> printf"%.10d",$.,<>
> 
> I thought Perl would flatten the arguments Left to Right
> -but did I try?  No, unfortunately not, and my assumption
> was wrong.  It's all about looking outside of the solution,
> trying something else...

I'm a newbie as well.  I didn't score that well.  With the benifit of
seeing the other code I left a few redundant chars in my game:
eg:
printf"%0.10d",$.
NOT
printf"%010d",$. ; or
printf"%.10d",$.

And other silly mistakes.

I have to say the I enjoyed my self far too much last week. and look forward
to the next game.
 
> I thought everyone else was cheating, since my first
> submissions totalled 102 characters (I cheated by omitting
> the \n from wc.pl, so Santa corrected it to 104).  The only
> other scores were 103 and 106, so I thought I'd stand a
> chance :P
> 
> I have to agree about Perl Golf competitions being evil
> when it comes to getting on with Real Life (TM) though. 
> Perl Golf is far more fun than Calculas and my other
> University subjects.
> 
> Not having Perl Golf championships too frequently makes the
> game more exciting.  We should wait at least 2 months
> before the next one, and we need to choose who's leading
> it.  I have some suggestions for (more difficult)
> challenges, for whoever will be commanding the next course.
> 
> Take care all,
> 
> Jonathan Paton
> 
> PS: Santa should be a player next round :)

Santa (Andrew) should certainly play, assuming that he's not the arbiter
for the tounament.  As arbiter you get to see all the "inspired" code which
does give you an advantage.  Certainly the arbiter can state par in the 
announcment.


Yours Tony.

/*
 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein
 */


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About