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

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
Jonathan E. Paton
December 3, 2001 14:35
Re: The Santa Claus Golf Apocalypse
Message ID:
> Brad Greenlee wrote:
> > Here's a question of fair play: does each program
> > have to work for any given text file, or is it ok
> > if it just works on the test cases presented by
> > tsanta? I can shorten my by one stroke, and
> > it still passes all the tests, but it will
> > eventually fail when the file reaches a certain size.
> Yanick : 
> I did the same. The rule says that if it passes
>, it's okay. However, I have to admit that it's
> crass cheating, and would accept any decision of not
> allowing this particular trick.

My definition of "fair" is to expect some input (i.e.
minimum of one line), and reasonable limitations.  Santa
has admitted the test program isn't ideal, and would like a
new improved one :)

Using 'die' or 'warn' is cheating, since these use STDERR
not STDOUT as specified.  Conking out after less than 1000
(a number I picked out from the ether) lines could be
considered bad.

I won't be terribly chuffed if someone wins by creating a
solution which breaks on the 12th line of input.  The
'idea' is to create one liners that match the problem
criteria, not the tests.  I'm sure the final versions will
be carefully picked at to ensure fairness.

Jonathan Paton

Nokia 5510 looks weird sounds great. 
Go to discover and win it! 
The competition ends 16 th of December 2001.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About