s, BoB should be in his own category.
(I'm tired of BoB taking a position on the leaderboard, when he's a
disqualified player - the la.pm.org leaderboard at least shows BoB as 'DIS',
and he does not take up a position)
--
Rick Klement
> Jasper
Is this some kind of tradition?
The TPR1 test program also tested for a value outside the rules :)
--
Rick Klement
t; 9 days.
>
> Terje K
I generally strip the plural 's' off all units at once with:
s/\b(1 \w+)s/$1/g
(BTW: golf your ($_!=1?"s":"") to ($_!=1&&"s") :)
--
Rick Klement
Eugene van der Pijll wrote:
>
> Among the entries, there were some that had something extra. They used a
> new, unique or surprising technique, used an unusual method, or were
> just ununderstandable. Some of these are:
>
> Kolakoski: Rick Klement (54.25)
>
> I'd
works, too.
>Are there any other special cases?
from perldelta for 5.6.1:
"pos() did not return the correct value within s///ge
in earlier versions. This is now handled correctly."
(sorry if you got a duplicate message)
--
Rick Klement
Eugene van der Pijll wrote:
>
> Among the entries, there were some that had something extra. They used a
> new, unique or surprising technique, used an unusual method, or were
> just ununderstandable. Some of these are:
>
> Kolakoski: Rick Klement (54.25)
>
Ton Hospel wrote:
>
> Oh, notice that the 37 solution uses something which would
> start the judges discussing, might be rejected and will need
> a rules amendment (either explicitely allowing or disallowing
> it) for future golfs (judges for TPR4, take note !).
*mad cackles*
--
Rick Klement
Dave Hoover wrote:
>
> Rick Klement will be heading up next month's referee tournament. Although
> everyone else probably need to visit the optometrist, I know I can't wait!
>
> --Dave
Any volunteers to help ref tpr05 ?
I even have a hole picked out. Of course
ust the problems with submitting it, because
> other non-printable characters are as bad. Did they give a reason?
I am also interested in the reason why the refs disallowed it.
I would have a tendency to disallow a byte that matched [^ -~\n\t]
if I were in charge (oh, wait, I will be :)
--
Rick Klement
Benoît Chauvet wrote:
>
> Oh, I forgot to say something...
>
> I can't find anything of a 'v' operator in perldocs (at least in perlop).
>
> Am I blind or what ?...
>
> --
> |3enoît
"or what" - it's in perldata...
--
Rick Klement
not to be. Nothing personal, I just know that `/anick is
> good at Perl golf and I'm not quite, yet. :-)
For another shot at Yanick, check out the open golf game at
http://LA.pm.org/golf/
Challenge #2 still has over three days left. The more you play, the
better you get. (And the worse your eyeballs get :)
--
Rick Klement
Phil Carmody wrote:
>
> --- Rick Klement <[EMAIL PROTECTED]> wrote:
> > Phil Carmody wrote:
> > >
> > > 2) In 2 days time, I'm going to want some pointers from the gurus
> > on
> > > the no doubt obvious tweaks that I could make to
Stick the above code into the template shown (for the ... # your program goes
here)
and see what the braces do. Better yet, copy that template out
to a file, stick in Eugene's code, and run it.
--
Rick Klement
Rick Klement wrote:
>
> Hi golfers,
>
> The July golf tournament could use some volunteer referees. There might
> be some slight delay in accepting solutions if I'm the only one :)
Since a week has gone by, let me try some less subtle techniques:
The Request: more referee
copy
that added 's or stripped trailing blanks?
Are all test cases wrong, or only one? (Because they work properly
for several of us.)
--
Rick Klement
Yanick wrote:
>
> On Wed, Jun 26, 2002 at 08:54:04AM -0700, Rick Klement wrote:
> > > this being said: the specs say that each line has
> > > a length of 10 chars, which the test program doesn't
> > > follow. Which has higher precedence?
> >
&g
'm innocent, I only did a test program, this golf is not my fault - hehehe)
--
Rick Klement
erje K
>
> btw. i'm down to 58 .. can anyone get under 40 ?? :)
Sure, I've got a 36 :)
--
Rick Klement
Hi Golfers,
The TPR(0,4b) golf course is now open.
(please bear with us as our brand new ref team
work out a few problems.)
Fore!
--
Rick Klement
Rick Klement wrote:
>
> Hi Golfers,
>
> The TPR(0,4b) golf course is now open.
>
> (please bear with us as our brand new ref team
> work out a few problems.)
And one of those problems is a new test program. Please
pick up version 1.3 from the web page.
--
Rick Klement
uot;
> ?
"more whitespace -> more favoured -> good"
I was trying for that oxymoron: "more readable golf"
--
Rick Klement
Rick Klement wrote:
>
> Rick Klement wrote:
> >
> > Hi Golfers,
> >
> > The TPR(0,4b) golf course is now open.
> >
> > (please bear with us as our brand new ref team
> > work out a few problems.)
>
> And one of those problems is a new t
Chris Dolan wrote:
>
> Rick Klement wrote:
> >
> > And yet another test program: version1.4
> >
> > Unfortunately we won't be able to get the web page updated
> > for a while, I'll attach it to this message.
&
s included
as an "isolated" node. I believe that is legal.
There is a cycle present including and ...
so your program should exit with a non-zero code.
--
Rick Klement
Ton Hospel wrote:
>
> In article <[EMAIL PROTECTED]>,
> Rick Klement <[EMAIL PROTECTED]> writes:
> >
> >
> > ...
> > ...
> > .. ...
> > . ..
> >
> > there is a node name
Phil Carmody wrote:
>
> --- Rick Klement <[EMAIL PROTECTED]> wrote:
> > Ton Hospel wrote:
> > >
> > > In article <[EMAIL PROTECTED]>,
> > &
And might be for another 4 to 8 hours until someone other
than me on the referee team wakes up :(
Sorry...
--
Rick Klement
e is non-zero. What is written to STDERR does not matter.
What is written to STDOUT does not matter.
--
Rick Klement
: "Passing the test program does not assure your solution
is valid. The referees have the final say."
The solutions from both Prakash Kailasa and Ala Qumsieh had passed the
test program at the time, but were found to be "not valid" and new
test cases were added to the test program to show the failure.
--
Rick Klement
Rick Klement wrote:
>
> Rick Klement wrote:
> >
> > Hi Golfers,
> >
> > The TPR(0,4b) golf course is now open.
> >
> > (please bear with us as our brand new ref team
> > work out a few problems.)
And another problem is the length of some of th
st hit that wall, with an entry that takes 120 seconds on a Celeron
> 900 MHz to complete test 27 (200 lines input)...
>
> Does this prevent the entry to enter the "unorthodox" category too?
> If not, do I have to resubmit?
Even "unorthodox" entries have to pass the tests
and be accepted by the referees.
--
Rick Klement
Hi golfers,
tpr(0,4b) has completed. The post-mortem is available at
http://perlgolf.sourceforge.net/cgi-bin/PGAS/post_mortem.cgi?id=6
Congratulations to the winners, Ton Hospel and Wladimir Palant.
--
Rick Klement
it 25 strokes also.
25 -p $h{$_}=""}for(sort%h){
Mind if I play through?
22 @h{<>}="";print sort%h
--
Rick Klement
orked is because it doesn't.
> :-) Sorry bout that.
But this seems to :)
21 print@h{<>}="",sort%h
--
Rick Klement
over the years,
> so I hope I haven't misattributed posts by people who happened
> to share a name:
>
> 1992-05-23: Rick Klement, comp.lang.perl, asking about hash
> keys, answered by Tom Christiansen and Larry Wall
> http://groups.google.com/groups?selm=21.11334
#$_=$&;s/^..(?=..$)/$&`/;/`/?join'',/(\w)(?=.{$-[0]}(.?))/g:reverse#egi
--
Rick Klement
Mtv Europe wrote:
>
> Hello Rick!
>
> [EMAIL PROTECTED] (Rick Klement) wrote:
>
> > Routine clean-up to 83:
> >
> > #!perl -p
> > s#[a-z`]+#$_=$&;s/^..(?=..$)/$&`/;/`/?join'',/(\w)(?=.{$-
> [0]}(.?))/g:reverse#egi
>
> a
t passes v8 tests: rpn.pl: 2807.26 strokes (ok)
Also, instead of using Parse::RecDescent, I did my own recursive
descent parser, and submitted it in the "Artistic" section at 141.36 (though
as the comment says, it's really a 137).
#!perl -p
sub o{print$"x$|++,shift}
sub f{s/^-*\d+//?o$&:e(s/.//)+s/.//}
sub t{f;o$&x1,f while s+^[*/]++}
sub e{t;o$&x1,t while s/^[+-]//}
e y///d
This would have scored in the middle of the pack, instead of the
actual depressing position I finished in.
--
Rick Klement
do not believe it is fair to change the rules to this extent near
the end of the game.
--
Rick Klement
"xx77Rd$fR$wPP"]^88)?l:26+fflush(sleep(1)1);}
54: s//_\b/;$_^=p while sleep print" oo\n<|>\n_|"x!$|++,$_
Darn, only 22 strokes shorter :(
--
Rick Klement
Andrew Savige wrote:
>
And one without that ugly \S :
s/^((.+ ).+)\n\2/$1 /m&&redo
at 31 with a hard \n.
--
Rick Klement
pare spare spare strike ???
>
> So, the bowler took one too many throws. Can someone explain what's
> going on? Did the rule maker just add an extraneous zero by mistake?
Yes, I believe you are correct, there is an extra 0 by mistake.
A spare in the tenth frame only allows one extra ball.
--
Rick Klement
idea of its behavior.
$^C can be avoided by using $^H as a counter, as in
-p0 $_=reverse,s/\.(?=(.{$&}x)+.{$&}o)/*/swhile$^H-=9870=~/./g
$^H does not have the special properties that $^C does, but $^H does
have an initial value of 256.
I hope this helps!
--
Rick Klement (tybalt89)
The first sentence of the rules states that this compression is
for "files which contain no digit characters".
--
Rick Klement
ssed file,
the word is moved *from its original position* to the beginning of the list.
Each word is in the list only once.
--
Rick Klement
le "length", but can't see a way round it,
> and on the keyhole front, my initial "${s}"s aren't very elegant.
>
> Anyone got a few pointers for improving it?
double length? what double length?
perl -le '[EMAIL PROTECTED]($-["[EMAIL PROTECTED]"=~/(.*)\1$/]<$-["[EMAIL
PROTECTED]"=~//])for 0..98'
(some golf tricks applied :)
--
Rick Klement
);
> $X[7] = $=>>$^F+!$%;
> $X[8] = !$%.$%-$^F;
> $X[9] = !$%.$%-!$%;
$X[3] = P^c;
$X[4] = P^d;
$X[5] = P^e;
$X[6] = P^f;
$X[7] = P^g;
$X[8] = P^h;
$X[9] = P^i;
--
Rick Klement
Horrors, that's blasphemy to those of us in
the Church of The Holy Indentation.
Everyone(tm) knows(tm) that the "Proper Indentation"(tm) is:
if(FOO)
{
print "foo!";
}
else
{
print "bar!";
}
:)
--
Rick Klement
"Neko (Simone Demmel)" wrote:
>
> Munich perl mongers have a little golf for me ... :-) so I'm happy
> at the moment... (but not winning it as far, as I can see :-) )
>
> neko
Care to share for those of us who are so golf deprived
we are actually discussing *i
49 matches
Mail list logo