Re: Teams?

2002-04-04 Thread Rick Klement
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

Re: bug in test program

2002-04-05 Thread Rick Klement
> Jasper Is this some kind of tradition? The TPR1 test program also tested for a value outside the rules :) -- Rick Klement

Re: PGAS code example

2002-04-26 Thread 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

Re: TPR(0,3) in review

2002-05-09 Thread 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

Re: Questions about solutions

2002-05-09 Thread Rick Klement
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

Re: TPR(0,3) in review

2002-05-09 Thread 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) >

Re: Minigolf

2002-05-16 Thread Rick Klement
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

Re: [tpr04] Finish Line

2002-06-08 Thread 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

Re: Teeing-off times (was Re: Argh!)

2002-06-08 Thread Rick Klement
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

Re: Teeing-off times (was Re: Argh!)

2002-06-08 Thread 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

Re: (TPR04)Oh, my achin' eyeballs^H

2002-06-11 Thread 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

Re: perl golf

2002-06-16 Thread 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

Re: perl golf

2002-06-16 Thread Rick Klement
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

Re: July golf tournament

2002-06-23 Thread 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

Re: midigolf

2002-06-26 Thread Rick Klement
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

Re: midigolf

2002-06-26 Thread 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

Re: midigolf

2002-06-26 Thread Rick Klement
'm innocent, I only did a test program, this golf is not my fault - hehehe) -- Rick Klement

Re: mini golf

2002-06-29 Thread Rick Klement
erje K > > btw. i'm down to 58 .. can anyone get under 40 ?? :) Sure, I've got a 36 :) -- Rick Klement

TPR(0,4b) is open

2002-06-30 Thread 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

Re: TPR(0,4b) is open

2002-07-01 Thread 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

Re: TPR(0,4b) is open

2002-07-01 Thread Rick Klement
uot; > ? "more whitespace -> more favoured -> good" I was trying for that oxymoron: "more readable golf" -- Rick Klement

Re: TPR(0,4b) is open

2002-07-01 Thread 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

Re: TPR(0,4b) is open

2002-07-01 Thread Rick Klement
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. &

Re: TPR(0,4b) is open

2002-07-01 Thread Rick Klement
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

Re: TPR(0,4b) is open

2002-07-01 Thread Rick Klement
Ton Hospel wrote: > > In article <[EMAIL PROTECTED]>, > Rick Klement <[EMAIL PROTECTED]> writes: > > > > > > ... > > ... > > .. ... > > . .. > > > > there is a node name 

Re: TPR(0,4b) is open

2002-07-01 Thread Rick Klement
Phil Carmody wrote: > > --- Rick Klement <[EMAIL PROTECTED]> wrote: > > Ton Hospel wrote: > > > > > > In article <[EMAIL PROTECTED]>, > > &

PGAS temporarily down

2002-07-01 Thread Rick Klement
And might be for another 4 to 8 hours until someone other than me on the referee team wakes up :( Sorry... -- Rick Klement

Re: TPR04b -- STDOUT in cycles?

2002-07-02 Thread Rick Klement
e is non-zero. What is written to STDERR does not matter. What is written to STDOUT does not matter. -- Rick Klement

Re: Sand Trap

2002-07-02 Thread 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

Re: TPR(0,4b) is open

2002-07-03 Thread 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

Re: Timeout?

2002-07-04 Thread Rick Klement
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

tpr(0,4b) has ended

2002-07-07 Thread 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

Re: Golf this.

2002-07-16 Thread Rick Klement
it 25 strokes also. 25 -p $h{$_}=""}for(sort%h){ Mind if I play through? 22 @h{<>}="";print sort%h -- Rick Klement

Re: Golf this.

2002-07-16 Thread Rick Klement
orked is because it doesn't. > :-) Sorry bout that. But this seems to :) 21 print@h{<>}="",sort%h -- Rick Klement

Re: First posts of some famous golfers

2002-08-26 Thread 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

Re: putting practice

2002-08-30 Thread Rick Klement
#$_=$&;s/^..(?=..$)/$&`/;/`/?join'',/(\w)(?=.{$-[0]}(.?))/g:reverse#egi -- Rick Klement

Re: putting practice

2002-08-30 Thread 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

Re: Some random reflections on tpr05a

2002-09-09 Thread Rick Klement
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

Re: The monthly golf *IS* happening

2002-11-18 Thread Rick Klement
do not believe it is fair to change the rules to this extent near the end of the game. -- Rick Klement

Re: Perl vs. C?

2003-01-21 Thread 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

Re: A little text file munging golf on the list

2003-03-15 Thread 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

Re: A new golf "Bowling" has started

2003-09-05 Thread 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

Re: A new golf "Reversi" has started

2003-11-22 Thread 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)

Re: A new golf "Entropy compress" has started

2003-12-03 Thread Rick Klement
The first sentence of the rules states that this compression is for "files which contain no digit characters". -- Rick Klement

Re: A new golf "Entropy compress" has started

2003-12-04 Thread 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

Re: Linus sequence

2003-12-18 Thread 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

Re: Shortest non-numeric Perl expression for each number

2004-03-11 Thread 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

Re: PBP

2006-01-19 Thread 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

Re: PBP

2006-01-22 Thread 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