Re: Warm-up problem

2002-03-26 Thread Ton Hospel
In article <3CA032E7.16703.3A95CBA9@localhost>, "Keith C. Ivey" <[EMAIL PROTECTED]> writes: > Stephen Turner <[EMAIL PROTECTED]> wrote: > >> Task: Each line on stdin contains an integer in [2,1] >> in decimal notation followed by a newline. Copy to stdout >> those lines for which the

Re: Warm-up problem

2002-03-26 Thread Ton Hospel
In article , [EMAIL PROTECTED] (Ton Hospel) writes: > mm, the standard golfers solution to this is 28 I'd say. Oops, ignore that. must count the options of course, so i also get the natural 31

Re: Warm-up problem

2002-03-26 Thread Ton Hospel
In article , [EMAIL PROTECTED] (Ton Hospel) writes: > In article , > [EMAIL PROTECTED] (Ton Hospel) writes: >> mm, the standard golfers solution to this is 28 I'd say. > Oops, ignore that. must count the options of course, > so i also get the natural 31

Re: Please explain

2002-04-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Jean-Pierre <[EMAIL PROTECTED]> writes: > Although I have entered tpr(0,2) as a veteran, although I am in fact a > veteran, I am also a perl's newbie. I play golf because it is fun, of course, > but also because it helps me to read perldoc more and more. >

Re: PGAS Features & TPR Update

2002-04-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Yanick <[EMAIL PROTECTED]> writes: > Oh, and on a related topic, I humbly suggest to keep > the number of holes in the low double binary (1 or 2 > holes). One week is quite a short time, and I think we > all have seen how a single hole can keep us all

LA pm golf

2002-04-13 Thread Ton Hospel
Ok, this one is now finished too. There is no post-mortem link yet, but you can find it at http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=1 It's won by Spifff with an entry that the judges of tpr3 should take notice off. It probably means the rule "must run in finite time" should be amended to

Re: LA pm golf

2002-04-13 Thread Ton Hospel
In article <a995ot$9ub$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > Ok, this one is now finished too. > There is no post-mortem link yet, but you can find it at > http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=1 > > It's won by Spifff with a

Re: LA pm golf

2002-04-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Rick Myers <[EMAIL PROTECTED]> writes: > On Apr 13, 2002 at 11:45:33 +0000, Ton Hospel wrote: >> >> The really interesting entry is in fact the one by Rick Myers >> because it can be trivially improved to

Re: LA pm golf

2002-04-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > On Sat, Apr 13, 2002 at 11:45:33AM +0000, Ton Hospel wrote: >> Ok, this one is now finished too. >> There is no post-mortem link yet, but you can find it at >> http://la.pm.or

Re: LA pm golf

2002-04-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > On Sat, Apr 13, 2002 at 09:22:11PM +0000, Ton Hospel wrote: >> the accumulator must be a string so you get magic ++ >> If you let it go from undef, it's a numeric ++ > >

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-14 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > En op 14 april 2002 sprak /-\ndrew: >> While researching tpr02, I stumbled across perhaps the earliest >> example of an organised golf competition: > > http://groups.google.com/groups?hl=en&selm=37DD324C.A984C7A9%40wins.uva.nl >

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-16 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Mtv Europe <[EMAIL PROTECTED]> writes: > I'm sorry for flooding. > >>> -p @$=a..z;pop@$ while@$>3&&!/@$[-4..-1]/x;$_ x=@$>3 >> that's better - >> -p @$=a..z;pop@$ until@$<4||/@$[-4..-1]/x;$_ x=@$>3 > > -p @$=a..z;1until/@$[-4..-1]/x|!--$#$;$_ x=@$>3 Near t

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-16 Thread Ton Hospel
In article <a9i5mg$mb5$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > In article <[EMAIL PROTECTED]>, > Mtv Europe <[EMAIL PROTECTED]> writes: >> I'm sorry for flooding. >> >>>> -p @$=a..z;pop@$ while@$>3&

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-16 Thread Ton Hospel
In article <a9iae8$pcc$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > In article <a9i5mg$mb5$[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Ton Hospel) writes: >> In article <[EMAIL PROTECTED]>, >> Mtv Europe <[EMAIL PROTECT

Re: Blast from the past: "Triple Challenge Tight Coding"

2002-04-16 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > and, afaics the winning one: > > -n /(.)((??{chr 1+ord$+})){3}/&&print Oh, I missed that one in the archives. Neat. > > which can (with todays golf knowledge) be shortened to: > > -p $_ x=/(.)((??{chr 1+or

Re: Frazetta's Against the Golf

2002-04-28 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Yanick <[EMAIL PROTECTED]> writes: > Have any of you wondered what it feels like to shave off that single > character that improves your hole for the first time after four > long days of stagnation and finally, finally gives you a lead > over the golfer t

Re: individual->team transfers

2002-05-01 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > On Wed, May 01, 2002 at 07:08:51PM +0100, Adam Spiers wrote: >> That seems a bit unfair for people who were planning on being in a >> team but in their eagerness to get cracking have already submitted >> soluti

Re: Course stats

2002-05-01 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Yanick <[EMAIL PROTECTED]> writes: > On Wed, May 01, 2002 at 10:06:27AM -0400, Yanick wrote: >> The TPR(0,3) course stats are available at >> http://babyl.dyndns.org/golf/course.epl?course_id=3 > > And now, so are the individual stats for both h

Re: TPR(0,3) - Updated Test Script

2002-05-02 Thread Ton Hospel
In article <3CD0C9A700068A3D@dummy>, Jerome Quelin <[EMAIL PROTECTED]> writes: > On Jeudi 2 Mai 2002 17:14, Dave Hoover wrote : >> BTW, Jerome is now one stroke behind Ton. Prior to the tournament, >> Jerome confided in me that he was a bit nervous that refereeing >> for the past few mont

Re: Thoughts on categories

2002-05-06 Thread Ton Hospel
I'd like to repropose my idea for a perl golf rating that is fairer to people who rarely play. All players have a certain rating before a tournament. When a tournament is done and, say, the winner had A strokes and you have B strokes, you get: score = A*100/B (So the winner gets 100, if you

Re: TPR(0,3) in review

2002-05-09 Thread Ton Hospel
In article , Mark Schoonover <[EMAIL PROTECTED]> writes: > --_=_NextPart_001_01C1F771.2FDB9790 > Content-Type: text/plain; > charset="iso-8859-1" > > Well, I did try to mangle my entire name, but the R would never look good. > I'm sure `/ anick wants it to look good. > R is do

Re: Alternative to newbies category...

2002-05-10 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > En op 10 mei 2002 sprak Red Squirrel: >> If that is acceptable to Yanick, I think it might help the >> situation and prevent the addition of yet another category >> (newbies) that would end up with too much disparity. > > PGAS sh

Re: Alternative to monthly contests? (was Re: Towards a sustainab le Golf schedule)

2002-05-10 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Jonathan E. Paton" <[EMAIL PROTECTED]> writes: >> This revives an old idea I had during the Santa tournament >> where a genetic algorithm is used to evolve potential hole >> solutions. The way it works is to initially create a large >> number of random solu

Re: Running out of golf holes ?

2002-05-12 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Terje Kristensen" <[EMAIL PROTECTED]> writes: > Have anyone seen this page ? > > http://acm.uva.es/problemset/ > > since there are like close to 1000 programming problems here, I think we could keep >it up for a few months before we run out :) > > Terje

Minigolf

2002-05-15 Thread Ton Hospel
Here's a small challenge that I set people on ircnet #perl: minigolf: write a program that, given argument n, prints to stdout the sum of the factors of n followed by a newline, e.g. "program 12" should print "16\n" (because factors 12 = 1 2 3 4 6. 1+2+3+4+6=16) (the number itself is not coun

Re: Minigolf

2002-05-16 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Jonathan E. Paton" <[EMAIL PROTECTED]> writes: >> > This is in fact unexpectedly challenging. a 43 is easy. A 40 is hard. >> >> Here's mine >> >> $m=pop;for(1..$m-1){$n+=$m%$_?0:$_}print $n >> >> 43, if I understand the rules correctly. (First attempt a

Re: Minigolf

2002-05-16 Thread Ton Hospel
In article <abuu69$iu6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > Here's a small challenge that I set people on ircnet #perl: > > minigolf: write a program that, given argument n, prints to stdout the sum > of the factors of n followed by a ne

Re: Minigolf

2002-05-17 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Lolly Pop <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Jonathan e. paton) writes: > >> It might not be the winning solution, but you missed >> a character optimisation suggested earlier: >> >> #!perl -l >> map$n+=$m%$_?0:$_,1..($m=pop)/2;print$n > > Y

Re: World map of players

2002-05-23 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > I am curious to see how close Ton lives to (-ugene > (I doubt they live in the same flat). We may need a > map of Mars before Ton can submit his co-ordinates. > > /-\ndrew My ICBM coordinates are latitude 52.083 longitude 4.333

Re: World map of players

2002-05-23 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Matthew Byng-Maddick <[EMAIL PROTECTED]> writes: > On Thu, May 23, 2002 at 10:38:39PM +0000, Ton Hospel wrote: >> My ICBM coordinates are latitude 52.083 longitude 4.333 > > This is a common myth, ICBM coordinates need altitude

Re: World map of players

2002-05-24 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > Several people have already done so. The map looks quite populated. > > Very few people have sent in their actual coordinates, so I tried to > resolve the city names. Unfortunately, the database I use doesn't

Re: Running out of golf holes ?

2002-05-25 Thread Ton Hospel
In article , [EMAIL PROTECTED] (Ton Hospel) writes: > but if you need a standard formal golf, you can go to > http://www.ardinternet.com/golf/oddnumbermagicsquare/ This golf is finished in the mean time, with a post-mortem at http://la.pm.org/cgi-bin/PGAS/post_mortem.cgi?id=3 H

Re: Minigolf

2002-05-28 Thread Ton Hospel
In article <ac3otl$rr2$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > In article <[EMAIL PROTECTED]>, > Lolly Pop <[EMAIL PROTECTED]> writes: >> #!perl -l >> print$n-map$n+=@a%$_?0:$_,@a=1..pop >> > > Yup, you found t

Re: Minigolf

2002-05-29 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Peter Makholm <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] (Ton Hospel) writes: > >> This is not the first time I've been wondering about the exact form of $0. >> I'd also like a judgement if `$0 args` is allowe

Re: Slow confirmation

2002-06-03 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Ala Qumsieh <[EMAIL PROTECTED]> writes: > --_=_NextPart_001_01C20AA1.225A7080 > Content-Type: text/plain; > charset="iso-8859-1" > > > Some of you might have noticed a slight delay in submission confirmations > (around 9 hours or so :) > I would

Re: [tpr04] 2.5 days left

2002-06-05 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Dave Hoover" <[EMAIL PROTECTED]> writes: > With 2 and a half days to go, the TPR(0,4) outcome is still in doubt. > Eugene overtakes Ton and Ton regains the lead. Guillermo passes pom and pom I'm now in the dreaded "I'm ahead, will i stay ahead ?" phase.

Re: [tpr04] 2.5 days left

2002-06-05 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Mark Anderson" <[EMAIL PROTECTED]> writes: >>However, one of these superbeginners entered again and spoils it for them. >>Since the beginner category is meant purely psychological (to get >>people to enter), and these guys defeat the whole point, I again pr

Re: Finis (was Re: Argh!)

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > On Fri, Jun 07, 2002 at 08:41:52PM +0200, Stefan `Sec` Zehl wrote: >> I really tried to beat Mr. Escaped Quote[tm], but as I have to leave >> now, and won't return until the end of the tournament I have lost th

Re: Finis (was Re: Argh!)

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Sean O'Rourke" <[EMAIL PROTECTED]> writes: > Mad props to Steven Turner, by the way, for making pack"A" work in so few > chars -- I tried it early on, but gave up in favor of Regex Hell well > before 200. And Marten Carlsen, for hitting 200 without command

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

2002-06-08 Thread Ton Hospel
In article , Stephen Turner <[EMAIL PROTECTED]> writes: > On Sat, 8 Jun 2002, Stephen Turner wrote: >> >> So far, I believe I've saved Eugene one stroke >> > > Hmmm. If I have, I've also saved Ton one. Maybe there's some reason why it's > b

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

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Stefan `Sec` Zehl <[EMAIL PROTECTED]> writes: > On Sat, Jun 08, 2002 at 12:05:55PM +0100, Stephen Turner wrote: >> But why didn't the referees allow it? There's nothing in the rules about it, >> is there? And surely it wasn't just the problems with submittin

Re: PGAS question about crazy chars

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Eugene van der Pijll <[EMAIL PROTECTED]> writes: > > $script =~ s#(\cM\cJ)#''#ge; > $script =~ s#([\0-\x1f])#'^'.($1^"\x40").''#ge; > Colors ! Good idea. Combine with my combined ^letter and \escape idea and we're getting somewhere ! Notice that tab is in

Re: Life after death for TPR(0,4)

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Mtv Europe <[EMAIL PROTECTED]> writes: > Hello All! > > Here is 149.23: > > #!perl -ap056 > sub > t{lc=~y/aeiouy//.v47.s/\w/$&/g}$_=/\./&&(@z=map//?t:$_^t^($_^=t^t),@F).": @F > ".t.":@z > ";y/\0/ /;s/( .{57})...+(. > .*.{0,56}\S+).*/$1..$2/ >

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

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Rick Klement <[EMAIL PROTECTED]> writes: > Stephen Turner wrote: >> >> On Sat, 8 Jun 2002, Ton Hospel wrote: >> > >> > I suppose it's the \0 => binary zero ? >> > >> > If so, neithe

Re: Weird bytes (was Re: Teeing-off times)

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Lars Henrik Mathiesen <[EMAIL PROTECTED]> writes: > Well, people actually managed to input the other strange chars in > their browser: tabs, ÿ, and so on. But for NUL, Dave would have had to > change every submission manually in PGAS --- that's the main reas

Re: Weird bytes (was Re: Teeing-off times)

2002-06-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Lars Henrik Mathiesen <[EMAIL PROTECTED]> writes: >> Date: Sat, 8 Jun 2002 22:10:46 + (UTC) >> From: [EMAIL PROTECTED] (Ton Hospel) ...snip some boring stuff about \0.. >> >> Actually it's a browser bug. newl

Re: Weird bytes (was Re: Teeing-off times)

2002-06-08 Thread Ton Hospel
In article <adu83h$4ni$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: in the mean time I found in win32/win32.h: #ifdef PERL_TEXTMODE_SCRIPTS # define PERL_SCRIPT_MODE "r" #else # define PERL_SCRIPT_MODE "rb" #endif and

Re: Weird bytes (was Re: Teeing-off times)

2002-06-09 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Brian <[EMAIL PROTECTED]> writes: > I very rarly run on MS, but here is the results... > > Yields 0d0d0a (binmode) > Ok, i think then all is explained. Lars's interpretation of how windows reads something submitted as cr cr lf in http is the right one. S

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

2002-06-09 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Sean O'Rourke" <[EMAIL PROTECTED]> writes: > From the rules: "A word contains at least one alphanumeric character > (letter or digit), and optionally some punctuation (. , ; : ' " ( ) & /). > Note: This means that punctuation characters can never occur alo

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

2002-06-09 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Sean O'Rourke" <[EMAIL PROTECTED]> writes: > I take them to be required: "A paragraph consists of one or more > sentences, separated by sequences of whitespace characters (spaces and/or > at most one newline)," and "a sentence consists of one or more words,

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

2002-06-09 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > Keith did this several times during the Get Even game: > > http:[EMAIL PROTECTED]/msg01257.html > > "If you suspect your solution is unsound, please please do what > Keith did, and try to find some test data that breaks it. > At

Re: Favorite quote

2002-06-10 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Josef Drexler <[EMAIL PROTECTED]> writes: > On Mon, 10 Jun 2002, Michael W Thelen wrote: >> Finally, after having $V=$T=$p=$q=$s=$Z (or something similar) in my program >> for the entire week, I found a clever way of undefining all variables $B..$Z >> (not $

Re: PGAS Upload Feature

2002-06-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Dave Hoover <[EMAIL PROTECTED]> writes: > This is a multi-part message in MIME format. > > --=-=jUsT.aNoThEr.mImE.bOuNdArY=-=10238211438433=-= > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > Mtv wrote: >>Ton has one ide

Re: eugene's solution

2002-06-12 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Eugene van der Pijll <[EMAIL PROTECTED]> writes: >> If (-ugene is retrospectively stripped of the "first >> working submission" title, who does it go to? >> Surely not `/anick? Not sure, but I think one of >> (-ugene's later submissions would get the nod. >

Re: PGAS Upload Feature

2002-06-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Dave Hoover <[EMAIL PROTECTED]> writes: > which prints ASCII 0 as ^@. This brings up another issue, should > ASCII 0 be represented as \0 or ^@? I prefer the escape, unless directly after a $, then use the ^letter version.

Re: The Homeworld

2002-06-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Dave Hoover <[EMAIL PROTECTED]> writes: > If in your search for the truth you have found any different formulae, > I would be interested in them. > > http://www.redsquirreldesign.com/cgi-bin/fun/mars.pl > > Enjoy, > --Dave > > PS: Of those involved in the

Re: The Homeworld

2002-06-13 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Chris Dolan <[EMAIL PROTECTED]> writes: > Hey! I'm not an alien! My convincing evidence: > > * I was born three years before "the incident" Something must have *caused* the incident. So we can safely posit elders. > * I didn't even know about Perl Golf

Re: perl golf

2002-06-15 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Phil Carmody <[EMAIL PROTECTED]> writes: > 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 my hamming entry - > is this the place for such discussions? A bit of technique is needed her

Re: perl golf

2002-06-15 Thread Ton Hospel
In article <aegjqm$o79$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > In article <[EMAIL PROTECTED]>, > Phil Carmody <[EMAIL PROTECTED]> writes: > >> 2) In 2 days time, I'm going to want some pointers from the gurus on >> t

Re: perl golf

2002-06-16 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Phil Carmody <[EMAIL PROTECTED]> writes: > Hmmm, if // means last 'succesfully executed' re. what does it mean > if it's the first ever re? > Then it's the empty regex. See for example the winning solution of TPR1 for a use of the way that the meaning of //

Re: perl golf

2002-06-16 Thread Ton Hospel
In article <aehnp8$2v3$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > Then it's the empty regex. Duh, of course it's the empty regex. I meant: if there was no successfull regex yet, it matches the empty string.

Re: The Golf/Funge connection

2002-06-20 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Phil Carmody <[EMAIL PROTECTED]> writes: > --- "Karger, Amir" <[EMAIL PROTECTED]> wrote: >> Anyway, I'm wondering if there's something about the mindset >> required for Fungeing that's also required for Perl golfing, or if >> it's just that in any large grou

ircnet minigolf2

2002-06-23 Thread Ton Hospel
ick Klement and Ton Hospel with a score of 35. However, in the post-mortem mtv (who else) found a 32. What can this list do ? Can you find 35 ? 32 ? even lower ?

Re: Exhumed - life after burial

2002-06-23 Thread Ton Hospel
In article <002b01c21b18$4a0d0ed0$18e791d8@saturn>, <[EMAIL PROTECTED]> writes: > The problem? Towers of Hanoi. The solution? So preposterously short that > at first I thought it a troll. > > http://www.perlmonks.com/index.pl?node_id=176643 > > Who was that masked alien? Ah, that was a

Re: ircnet minigolf2

2002-06-24 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Yanick <[EMAIL PROTECTED]> writes: > On Mon, Jun 24, 2002 at 10:49:21AM -0400, Amir Karger wrote: >> -p $_=(sort{1x$a^1x$_-1x$b^1x$_}<>)[0] > > -p ($_)=sort{1x$a^1x$_-1x$b^1x$_}<> > > Joy, > `/. > Except that it doesn't work for big numbers in the input

Re: ircnet minigolf2

2002-06-25 Thread Ton Hospel
In article <001201c21c32$9bc90420$[EMAIL PROTECTED]>, Benoît Chauvet <[EMAIL PROTECTED]> writes: > Yes, but have you tried this ? > -p ($_)=sort{abs$_-$a<=>abs$_-$b}<> (35) > Good, the 35 has fallen. I've seen fragments of the route to 32 already...

Re: ircnet minigolf2

2002-06-25 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Michael W Thelen <[EMAIL PROTECTED]> writes: > On Tue, Jun 25, 2002 at 12:25:20PM +0200, Benoît Chauvet wrote: >> Yes, but have you tried this ? >> -p ($_)=sort{abs$_-$a<=>abs$_-$b}<> (35) > I like this solution, but after processing the input lines, it han

Re: ircnet minigolf2

2002-06-25 Thread Ton Hospel
In article <003701c21c8_$3d_0_da0$0201a8c0@dsl>, "Benoît Chauvet" <[EMAIL PROTECTED]> writes: > - Original Message - > From: "Ton Hospel" <[EMAIL PROTECTED]> >> > Yes, but have you tried this ? >> > -p ($_)=sort{abs$

Re: midigolf

2002-06-26 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Chris Dolan <[EMAIL PROTECTED]> writes: > 135 for me. > To avoid a mailinglist with only mails with numbers, you can also mail your scores to [EMAIL PROTECTED] . Don't send your program (yet) though, I'm a player too. I also don't guarantee quick turnaround

Re: midigolf

2002-06-26 Thread Ton Hospel
New testscript for http://www.xs4all.nl/~thospel/golf/midigolf1.html

Re: midigolf

2002-06-27 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > And for the people who really can't stop: > > http://www.xs4all.nl/~thospel/golf/midigolf1.html > > however, do NOT post solutions on the list, only say how many strokes you > have. This one is still in progress and we don't wan

Re: minigolf3

2002-06-29 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > To give the mailinglist an equal chance to ircnet #perl: > http://www.xs4all.nl/~thospel/golf/minigolf3.html And now there is even a testprogram: http://www.xs4all.nl/~thospel/golf/minitest3.pl rumor has it that it even works o

Re: mini golf

2002-06-30 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Terje Kristensen" <[EMAIL PROTECTED]> writes: Hey stop ! The game's not over yet !

Re: minigolf3

2002-06-30 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > To give the mailinglist an equal chance to ircnet #perl: > http://www.xs4all.nl/~thospel/golf/minigolf3.html And it's finished. Please mail me your best solutions and any particularly interesting ones.

Re: minigolf3

2002-06-30 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Dave Hoover" <[EMAIL PROTECTED]> writes: > Ton wrote: >> Please mail me your best solutions and any particularly interesting ones. > > #!perl -pl > ++$_[--$_]while$_}for(sort@_){ Rejected...

Re: TPR(0,4b) is open

2002-07-01 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Rick Klement <[EMAIL PROTECTED]> writes: > "more whitespace -> more favoured -> good" > > I was trying for that oxymoron: "more readable golf" > It's a lost cause. It will look like line-noise anyways.

Re: TPR(0,4b) is open

2002-07-01 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Rick Klement <[EMAIL PROTECTED]> writes: > > > ... > ... > .. ... > . .. > > there is a node name '' that is both in a relationship and is included > as an "isolated" node. I believe that is legal. > duh ? But t

Re: Hurrah! /-\ is a nostril ahead of `/ (yet again)

2002-07-03 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > Stop Press. Latest Leaderboard: > /-\ndrew 143.46 > `/anick143.53 > > ^.^ :))) > > BTW, I symphathize with FatPhil. By a process > akin to natural selection, the standard of > golf is definitely going up. The weaker player

Re: test #23

2002-07-03 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Eugene van der Pijll <[EMAIL PROTECTED]> writes: > En op 03 juli 2002 sprak Steffen Mueller: > >> This really isn't a new rule, I think. The rules never stated that your >> entry isn't supposed to work on a very large number of nodes. In fact, we >> deliber

Re: test #23

2002-07-04 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >> program could in principle handle more, but the use of 10**7 allows them >> to shave one stroke. > > If they have any sense, they'd hardcode it as 1e7... > Damn you ! I carefully tried not to give away *THE* essential optimiza

Re: My solution annotated

2002-07-08 Thread Ton Hospel
In article , Stephen Turner <[EMAIL PROTECTED]> writes: > So, last month I annotated all the top 12 solutions. People seemed to > appreciate it, but there's no way I've got time to do it again this month! > > So I thought it would be intere

Re: Career Money Leaders Update

2002-07-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > This month's update sees Ton cement his position as "The Alien" and > Mtv leave no doubt whatsoever that he is indeed a bona fide alien. > Ok, that seems to put me ahead far enough. Therefore, I'll hereby volunteer to make up th

Re: Career Money Leaders Update

2002-07-08 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Dave Hoover <[EMAIL PROTECTED]> writes: > Ton wrote: >>Ok, that seems to put me ahead far enough. Therefore, I'll hereby >>volunteer to make up the challenge and be referee for the next TPR. > > So when do we want to have the next tournament? The next iss

Re: more minigolf

2002-07-10 Thread Ton Hospel
0: 41 1: 42

Iron Man team golf

2002-07-10 Thread Ton Hospel
So you think you swing a mean club ? You think you can solve minigolfs while still sleeping ? You jump large bunkers in a single stroke ? Then try a *HARD* golf, the Iron Man Team Golf 1, at http://www.xs4all.nl/~thospel/golf/irongolf1.html Since even getting a working solution at all is not eas

Re: more minigolf

2002-07-11 Thread Ton Hospel
my 41: @F[y///c]++for glob"{,1}"x pop;print"@F\n" @F[eval]++for glob"{,+1}"x pop;print"@F\n" print"@{[$w=1,map$w*=$_/--$;,-pop..-1]}\n" my 42: @F[y///c]++for glob"{,1}"x~-pop;print"@F\n" @F[eval]++for glob"{,+1}"x~-pop;print"@F\n" Also fun are: 45 s/^/0 /,s/\d+/$&+$'/egfor($_="1\n")x pop;print 4

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Eugene van der Pijll <[EMAIL PROTECTED]> writes: > 34 Eugene van der Pijll (rejected...) > @a^+=(!$_,@a)for 0..pop;print"@a > " Interesting, a solution that will become valid after a bit of waiting.

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Eugene van der Pijll <[EMAIL PROTECTED]> writes: > En op 11 juli 2002 sprak Chris Dolan: >> #!perl >> use Math::Random; >> $z=pop; >> map$_>0&&$_<$z&&$_[$_]++,random_normal 4e4,$z/2; >> $_=int 0.5+$_/$_[-1]for@_; >> print"@_\n" >> >> It *usually* succeeds u

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Chris Dolan <[EMAIL PROTECTED]> writes: > Phil Carmody wrote: >> >> What is >> @{[ ... ]} >> ? >> >> It's not in perlsyn, perlop, perlvar ... >> > > It's like this: > > $ref = [$w=1,map$w*=$_/--$;,-pop..-1]; > print "@$ref\n"; > > only with an anony

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: >> Does anyone else want to claim a golf trick? I claim: $|-- and --$| as toggle. ~- as a prefix -1 construct (e.g. in ~-pop) I would be surprised if these weren't known before, but at least I discovered them independently.

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > Setting $^I via -i switch: Karsten Sperling Both Karsten and me learned this trick from suo (Jukka Suomela) on ircnet.

Re: more minigolf

2002-07-11 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] writes: > En op 12 juli 2002 sprak The Alien: >> I claim: >> $|-- and --$| as toggle. >> ~- as a prefix -1 construct (e.g. in ~-pop) > > Using -X to silence warnings: Ton Hospel (??) At least I disc

Re: more minigolf

2002-07-12 Thread Ton Hospel
Ah, like this i can in fact avoid the aliassing: 40: -l print$w=1,map{$",$w*=$_/--$n}-pop..-1

Re: The tortoise-crawlin' Hall of Shame

2002-07-15 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, "Terje Kristensen" <[EMAIL PROTECTED]> writes: > I was by a little study of Eugene's solution i came up with this tho. > > -nl $h{$a}{$'}=/ /;$h{$'}{$`}++if$`ne$'}{sub >z{map$y{$_}||=1/!$u{$_}+++z($_)+print,keys%{$h{+pop}}}z > > thats 100 .. wish i could

Re: The tortoise-crawlin' Hall of Shame

2002-07-15 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Ala Qumsieh <[EMAIL PROTECTED]> writes: > 93 -nl $h{$a}{$'}=/ /;$h{$'}{$`}+=$`ne$'}{sub > z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$h{$_}}}z > > --Ala Nope. The value does in fact not matter, only if the element exists or not. and adding 0 still creates i

Uncle Sam wants YOU as referee

2002-07-15 Thread Ton Hospel
It's that time of the month again: volunteer referees, please step forward (or at last remain standing while the rest steps backward). Currently David Lowe bravely volunteered to undergo the alien brain operation and assist me in this demanding job. But we need more. Espcially people who can cov

Re: Golf this.

2002-07-16 Thread Ton Hospel
In article <[EMAIL PROTECTED]>, Michael W Thelen <[EMAIL PROTECTED]> writes: > On Tue, Jul 16, 2002 at 09:45:21AM -0700, Rick Klement wrote: >> But this seems to :) >> >> 21 print@h{<>}="",sort%h > > Here's a 20 that looks like it still has room for improvement: > > 20 \@h{<>},print so

Re: The tortoise-crawlin' Hall of Shame

2002-07-16 Thread Ton Hospel
In article <aguqmn$j6d$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > Wish granted: > 95 -nl $h{$a}{$'}=/ /;$h{$'}{$`}++if$`ne$'}{sub >z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$h{$_}}}z > Inspired by Michel Thelens sort and some

Re: The tortoise-crawlin' Hall of Shame

2002-07-16 Thread Ton Hospel
In article <ah21lr$iva$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > 92 -nl \$1{!/ /}{$'};\${$`ne$'}{$'}{$`}}{sub >z{map$y{$_}||=1/!$u{$_}+++&z+print,keys%{$1{$_}}}z > mm, combine,combine. 91 -nl ${$`ne$'}{$'}{$`}=\$1{!/ /}{

Re: Iron Man team golf

2002-07-17 Thread Ton Hospel
In article <aghspe$n56$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Ton Hospel) writes: > So you think you swing a mean club ? You think you can solve minigolfs > while still sleeping ? You jump large bunkers in a single stroke ? > > Then try a *HARD* golf, the Iron Man Team

  1   2   3   >