Re: New Golf

2007-02-11 Thread Andrew Savige
`/anick wrote:
 Ooooh... A Roman-to-decimal rehash of the Fonality tournament.
 Aah.. Emm... Do you mind if we pursue this conversation later on?
 I suddenly remember I have things to do...

Thanks `/ for bringing that to my attention. I need another golf game
like a hole in the head. ;-) As you might have guessed, I could not
restrain myself from gazing at the magic of the Earthman code lamp
from the opposite direction.

Though I really enjoyed that eye-popping experience, I'm now ready for
the post mortem, to enjoy all the weird and wonderful approaches of the
other contestants ... except there isn't one. Oh well, I notice many
others have complained about this and the site owners have promised to
close challenges and publish the solutions eventually ... when no doubt
we'll see a rash of Ton/Mtve deep post mortem improvements to the
winning solutions. :-)

 And if I discreetly, very discreetly scoot close to that group and perk
 my ear, I'd probably hear them passionately bemoan how those darned
 foreigners are butchering that old, venerable sport that Golf is...

Yep, I just stumbled on another butchering on the discussion board
http://codegolf.com/boards/conversation/view/98:

  Milk holes in the tests as much as you want

Compare that abomination to the gentlemanly conduct of the traditional
game, where exploiting holes in the test program risks excommunication
and where the proper response is to alert the (human) referee with a
test case plugging the hole. You can't replace the traditional human
golf referee with a robot.

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-02-03 Thread Andrew Savige
--- ô Great Ton wrote:
 In article [EMAIL PROTECTED],
   Robin  Houston [EMAIL PROTECTED] writes:
 On the subject of new golf, I wonder if you golfers all know about
 http://codegolf.com?

 The rules are not quite the same as traditional Perl golf: the most
 important difference is that the whole of the shebang line counts
 towards the size, which effectively penalises the use of switches
 by seven strokes (#!perl + the newline) and makes the }{ business
 less useful.

 That's the major issue stopping me.
 A 7 stroke penalty to use options is just too much.

Agreed.

However, the biggest problem with this site is that:

 Challenges are always open

This regrettable rule ruins the game of golf because:

 1) It robs you of the joy of the post mortem: the joy of learning new
Perl tricks, the joy of discovering what the heck ô Great Ton was
up to, and perhaps the greatest joy of all, the joy of teasing
`/anick about making a blunderific Mr Magoo ... again.

 2) It imposes no limit on how much time you spend on a challenge.
Though perhaps not a problem for well-adjusted folks, I fear an
obsessive personality may spend far more time than they can afford
on a challenge, resulting in chronic distress in their personal life.
With the traditional one week tournament, at least you are strictly
limited in how much time you waste.

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-17 Thread Daniel Cutter
I was just wondering, reading all your talk about your solutions to the 
fonality golf, I would assume that everyone converted in arabic, 
calculated and then converted back to roman. When I first had a look at 
the problem I thought that that would be the obvious way to do it. At 
the time I thought it would be shorter though to calculate in roman and 
just drop the conversion. My first solution was with all the conversion. 
I say that Ton had allready posted a 100 so I thought he must have gone 
the other way. So I tried. My best solution (247) did just that. Based 
on the Wikipedia article I tried to add and subtract the roman numerals 
directly. Did anybody else do that?


--
Daniel Cutter
use Convert::Morse q!as_ascii!;$d=q!%-;_:;.=.Lo.=fo=:..=|_;.|!;for
(split/!/,'. ! -!o ; |!Lf --!_% !::!, %!- != %!|%;!:;;!f-;!%;-!;.')
{($a,$b)=/(.)(.+)/;$d=~s!\Q$a!$b!g}$_=as_ascii$d;s!(\w+)!\u\L$1!g;;print




Re: New Golf

2007-01-17 Thread Jasper

On 1/17/07, Daniel Cutter [EMAIL PROTECTED] wrote:

I was just wondering, reading all your talk about your solutions to the
fonality golf, I would assume that everyone converted in arabic,
calculated and then converted back to roman. When I first had a look at
the problem I thought that that would be the obvious way to do it. At
the time I thought it would be shorter though to calculate in roman and
just drop the conversion. My first solution was with all the conversion.
I say that Ton had allready posted a 100 so I thought he must have gone
the other way. So I tried. My best solution (247) did just that. Based
on the Wikipedia article I tried to add and subtract the roman numerals
directly. Did anybody else do that?


I had a solution that had bits that incremented and decremented a
roman numeral. That way I could add to or subtract from the first
number while decrementing the second until the second was zero. And so
on.

I think I got to around 220/230 with this method. I don't have it on
me, either, and I think it was a blind alley I went up at one stage,
so I probably won't have submitted it..

But the method to add or subtract directly in RN just seemed far too
complicated to me.

Jasper

p.s.
for($f=12;$f--0;){
surely
for($f=12;--$f;){
?


Re: New Golf

2007-01-17 Thread Andrew Savige
--- Jasper wrote:
 p.s.
 for($f=12;$f--0;){
 surely
 for($f=12;--$f;){
 ?

p.p.s. Mr Magoo. I think you meant for($f=12;$f--;)

For cheap thrills, I fixed a few more Magoos, whittling dcutter's 247 to 237:

#!perl -aln
@a=(IV,IX,XL,XC,CD,CM,M,D,C,L,X,V);@b=(I,VI,X,LX,C,DC,DD,CC,LL,XX,VV,II);s/[IXC]\b/$x4/[EMAIL
 PROTECTED];for(@F){for$f(0..12){s/$a[$f]/$b[$f]/g}}($r)[EMAIL 
PROTECTED];$d++,/p/and$r.=$F[$d]or$r=~s/$F[$d]//[EMAIL 
PROTECTED];for($f=12;$f--;){$r=~s/$b[$f]/$a[$f]/g}print$r

Daniel, though, in desperation, I did think of doing it this way, a quick
analysis convinced me that not even ô Great Ton could whittle this approach
down to 100. So I didn't pursue it further. It just seemed crazy to me not
to exploit the 4-stroke eval to do the arithmetic.

Generally, I think it's best not to waste too much energy wondering what
the photon ô Great Ton is doing, and just focus on working the problem.
In my case, realizing that you only need to write one converter was the
biggest breakthrough.

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-15 Thread Yanick Champoux
On Sunday 14 January 2007 11:31, Ton Hospel wrote:
  Super trivial Magoo on yanicks solution, good for one T-shirt:
 
  =~/$/ can be written as =~$

 Less Magoo:

 #!perl -lp040
 $s=/m/
 if/u/;($y=I1V5X10L50C100D500M1000IV4IX9XL40XC90CD400CM900)=~chop,$t+=$s^$;
($;=$')?-$;:$;while$_}{1while$y=~/(\D+)$?/$t=$??($_.=$1,$t-=$?):--$?

 (162.52)

Do'h! I clean forgot about the validity of =~$foo, and not having 
realized 
that I could acheive big numberness by moonwalking through the backdoor is 
just silly, silly, silly. I stand humbled, ô Great Ton.


Listening, learning,
`/anick


Re: New Golf

2007-01-14 Thread Andrew Savige
On Thu, 2 May 2002, Stephen Turner wrote:
 On Thu, 2 May 2002, Ton Hospel wrote:

 Jerome Quelin writes:

 I begin to think that Ton is an alien. This makes me wonder: has anyone
 seen Ton in real life? ;)

 I have.

 That's just what an alien _would_ say.

 --
 Stephen Turner, Cambridge, UKhttp://homepage.ntlworld.com/adelie/stephen/
 This is Henman's 8th Wimbledon, and he's only lost 7 matches. BBC, 2/Jul/01

I feel Ton's magical arabic to roman converter warrants being honoured
with a name -- and maybe a wikipedia entry. :-).

My first thought was HART: Hospelian Arabic to Roman Transform.

Remembering this old ton is an alien thread, I now propose Earthman:

  Eye-popping Alien Roman Ton Hospelian Magical Algorithm for Numerals

If you can think of a better name, please let us know. :-)

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-14 Thread Ton Hospel
In article [EMAIL PROTECTED],
Andrew Savige [EMAIL PROTECTED] writes:
 --- Michael Wrenn wrote:
 ... An extremely obvious 2 stroker ...
 
 I've cast my eye over your and `/anick's solutions looking for
 any more obvious 2 strokers. Alas, I couldn't find one in
 `/anick's masterwork, but I did find another Mr Magoo-esque
 2 stroker in your 169.51, namely changing:
 
   qw(IV XL CD V L D IX XC CM X C M)
 
 to:
 
   (IV,XL,CD,V,L,D,IX,XC,CM,X,C,M)
 #!perl -lp
 s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$X[$_].=4x$%1859^7!egfor+0..3999;@[EMAIL 
 PROTECTED]@X;y/m/-/;s/\w+/+$Y{$}/g;$_=$X[eval]
 
 in only a few minutes. I had toyed with Util's approach during
 the game, but kept floggin' the same old dead horse. :-(
 For some reason, I find it difficult psychologically to let go
 of one approach and switch to a new one.
 
 Can Util's approach be taken below 117? I wonder what is the lowest
 score possible without using symbolic references.
 
The most obvious target is to get rid of the 0:
#!perl -pl
s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$X[$_].=4x$%1859^7!egfor!y/m/-/..3999;@[EMAIL 
PROTECTED]@X;s/\w+/+$Y{$}/g;$_=$X[eval]

(115.54)


Re: New Golf

2007-01-14 Thread Ton Hospel
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ton Hospel) writes:
 The most obvious target is to get rid of the 0:
 #!perl -pl
 s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$X[$_].=4x$%1859^7!egfor!y/m/-/..3999;@[EMAIL
  PROTECTED]@X;s/\w+/+$Y{$}/g;$_=$X[eval]

 (115.54)

Also use map to get the range:

#!perl -pl
@[EMAIL PROTECTED] 
s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$X[$_].=4x$%1859^7!eg,!y/m/-/..3999;s/\w+/+$Y{$}/g;$_=$X[eval]

(114.54)


Re: New Golf

2007-01-14 Thread Yanick Champoux
On Saturday 13 January 2007 21:20, Andrew Savige wrote:
 Can anyone else see anything Mr Magoo-like in m.wrenn's or
 `/anick's solutions? Just to rub it in, you see. :-)

You, my friend, are a very evil, very cruel man. 

 I had toyed with Util's approach during
 the game, but kept floggin' the same old dead horse. :-(
 For some reason, I find it difficult psychologically to let go
 of one approach and switch to a new one.

I think that being able to Let Go, not to mention knowing when to let 
go, are 
yet another of those skills that separate the true golfmeisters from mere 
mortals. Personally, I know that early in the game I try a few different 
approaches to get a grip of the challenge (I first come out with a naive but 
working solution, then start again from scratch with a more golfing frame of 
mind). Then, as the game progress, the changes to the solution become less 
revolutionary, and more evolutionary. With the exceptions of when one of 
those evolution steps naturally leads to a revolutionary leap (like the 
prehistoric bat realizing that it doesn't have to climb down trees anymore 
but can go flap-flap-flap instead, so a golfer realizes he really doesn't 
really need that hash anymore). 


Joy,
`/anick



Re: New Golf

2007-01-14 Thread Ton Hospel
In article [EMAIL PROTECTED],
Andrew Savige [EMAIL PROTECTED] writes:
 Can anyone else see anything Mr Magoo-like in m.wrenn's or
 `/anick's solutions? Just to rub it in, you see. :-)
 
Super trivial Magoo on yanicks solution, good for one T-shirt:

=~/$/ can be written as =~$


Re: New Golf

2007-01-14 Thread Ton Hospel
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Ton Hospel) writes:
 In article [EMAIL PROTECTED],
   Andrew Savige [EMAIL PROTECTED] writes:
 Can anyone else see anything Mr Magoo-like in m.wrenn's or
 `/anick's solutions? Just to rub it in, you see. :-)

 Super trivial Magoo on yanicks solution, good for one T-shirt:

 =~/$/ can be written as =~$

Less Magoo:

#!perl -lp040
$s=/m/
if/u/;($y=I1V5X10L50C100D500M1000IV4IX9XL40XC90CD400CM900)=~chop,$t+=$s^$;($;=$')?-$;:$;while$_}{1while$y=~/(\D+)$?/$t=$??($_.=$1,$t-=$?):--$?

(162.52)


Re: New Golf

2007-01-13 Thread Andrew Savige
--- Michael Wrenn wrote:
 ... An extremely obvious 2 stroker ...

I've cast my eye over your and `/anick's solutions looking for
any more obvious 2 strokers. Alas, I couldn't find one in
`/anick's masterwork, but I did find another Mr Magoo-esque
2 stroker in your 169.51, namely changing:

  qw(IV XL CD V L D IX XC CM X C M)

to:

  (IV,XL,CD,V,L,D,IX,XC,CM,X,C,M)

Can anyone else see anything Mr Magoo-like in m.wrenn's or
`/anick's solutions? Just to rub it in, you see. :-)

For your convenience, here is `/anick's 170.51:

#!perl -lp040
$s=/m/
if/u/;($y=I1V5X10L50C100D500M1000IV4IX9XL40XC90CD400CM900)=~/$/,$i=$t+=$s^$;($;=$')?-$;:$;while
s/.$//}{1while$y=~/(\D+)$i/$t=$i?($_.=$1,$t-=$i):$i--

and here is m.wrenn's 169.51:

#!perl -lp
@@{@@=map{$_,$_.0,$_*100}4,5,9,10}=qw(IV XL CD V L D IX XC CM X C
M);for$~(@@){s/[EMAIL PROTECTED]/I x$~/ge}s/I//while s/m\w* +I/m
/;$~=y/I//cd;s/I{$~}/[EMAIL PROTECTED]||$/gewhile$~--

I also made the mistake of idly golfing on Util's 129.50:

#!perl -lp
$==$_,s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$_[$=].=4x$%1859^7;5!egfor+0..3999;@[EMAIL
 PROTECTED]@_;y/il-z/-+/d;s/\w+/${$}/g;$_=$_[eval]

and was horrified to transform it into a 117 [*one* less than (-ugene!!]:

#!perl -lp
s!.!y$IVCXL91-I0$XLMCDXVIII$dfor$X[$_].=4x$%1859^7!egfor+0..3999;@[EMAIL 
PROTECTED]@X;y/m/-/;s/\w+/+$Y{$}/g;$_=$X[eval]

in only a few minutes. I had toyed with Util's approach during
the game, but kept floggin' the same old dead horse. :-(
For some reason, I find it difficult psychologically to let go
of one approach and switch to a new one.

Can Util's approach be taken below 117? I wonder what is the lowest
score possible without using symbolic references.

Oh, and does anyone know who jojo is and what country he/she
comes from? (Someone by that name has played 12 challenges at
codegolf.com).

Thanks,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-12 Thread Ton Hospel
In article [EMAIL PROTECTED],
Andrew Savige [EMAIL PROTECTED] writes:
 Please let me know if you see something in the report that
 makes you pull a face.


I think you should also explain how constructing the table
backwards (from 3999 to 1) allows you to put the $$$_=$_
*inside* the s///eg, since that way the wrong entries for
the partial roman strings during buildup get fixed later on.
And maybe also why the range can be safely extended to
4000..0

Readers of your perlmonks article probably also don't
understand the inside joke about amounts of money won.
(I wish they were real :-) )

I'd also like to point out that my entry is as far as
I know the first use of a functional smiley (-: in
golf code.

--
As a lawyer working for Bohr  Associates, we recently discovered the sum
of 8*10^16 Joules ((8 Joules) held inside 1kg of Uranium
235. If with your help, we can free this energy, through a fission
reaction, you will receive 0.1% of it in the form of heat, which can be
used to drive turbines.

Wishing you long life,
Asumemwe Obugo, Lawyer, Nigeria


Re: New Golf

2007-01-07 Thread Ton Hospel
In article [EMAIL PROTECTED],
Robin  Houston [EMAIL PROTECTED] writes:
 On the subject of new golf, I wonder if you golfers all know about
 http://codegolf.com?
 
 The rules are not quite the same as traditional Perl golf: the most
 important difference is that the whole of the shebang line counts
 towards the size, which effectively penalises the use of switches by
 seven strokes (#!perl + the newline) and makes the }{ business less
 useful.
 

That's the major issue stopping me. A
7 stroke penalty to use options is just too much.

 The other significant differences are that programs have to terminate
 within 4 seconds of wall-clock time on the server, and that modules -
 even core modules - can't be used. But it's just as fun to play IMO.
 
And I'm not too wild about this one either. Usually it's not much of a 
problem, but for things like calculate pi to 1000 places in a languages
without builtin bignums, it's just too painfull

And of course I'm trying not to waste too much time on golf...


Re: New Golf

2007-01-07 Thread Ton Hospel
In article [EMAIL PROTECTED],
Andrew Savige [EMAIL PROTECTED] writes:
 You might call this golfing the post mortem ... speaking of which,
 I bet Ton is still searching for that elusive 98. :-)

Nah, I'm not. I'm reasonably confident that the magic formula is
optimal for a one shot number to roman (though I did find a
previously unknown formula that's only one stroke longer) ,
and that the way to use that to solve the problem is also shortest.
(I also realized in the mean time that my range optimizer program
is incomplete, but I don't think it matters for this problem)

The thing I most seriously looked into is that in building the lookup
table i use the magic formula to for number to roman without using the
rest of the table. That seems a waste of a lot of already available
information.

e.g. if you count forward, you can imagine converting number D
by doing:   ($lookup{D} = $lookup{} . magic(D)) =~ y///
where the y/// shifts by one (probably using a for instead of =~ ).

Or maybe not even go through numbers:
  $lookup{$num++} = ripple_carry($accu .= I)

The s/.//eg loop to convert by digit however is so efficient that I
found nothing to beat it. I'm not very convinced it can't be beaten
though.
--
Help bring about world peace. Kill a fanatic today!


Re: New Golf

2007-01-05 Thread Andrew Savige
--- /-\ndrew Savige wrote:
 It seems to me that some of the solutions are not quite correct, failing the
 test case:
 
  MD plus I
 
 which should produce the answer MDI.
 
 Please correct me if I'm wrong, but it seems that the shortest solutions
 of szery, Sec and Jasper all fail this test case.
 
 Falling back one stroke from 4e3 to 3999 remedies.

Found another. Ted Young's 107 fails this test case:

 MD minus I

which should emit:

 MCDXCIX

but Ted's entry emits:

 MMMCMXCIX

At least that's what I see.

As per szeryf, Sec and Jasper, changing 4e3 to 3999 remedies,
at the cost of a stroke.

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-04 Thread Robin Houston
On the subject of new golf, I wonder if you golfers all know about
http://codegolf.com?

The rules are not quite the same as traditional Perl golf: the most
important difference is that the whole of the shebang line counts
towards the size, which effectively penalises the use of switches by
seven strokes (#!perl + the newline) and makes the }{ business less
useful.

The other significant differences are that programs have to terminate
within 4 seconds of wall-clock time on the server, and that modules -
even core modules - can't be used. But it's just as fun to play IMO.

You have to compete against Ruby programmers in the overall ranking,
but there are separate rankings by language. (Or perhaps it's an excuse
to learn Ruby, for the really serious competitor: some problems seem to
be more golfable in Ruby than Perl, and some are the other way around.)
Entries are also allowed in Python and PHP, but those aren't good
golfing languages and offer no real competition.

There are a few familiar perlgolf names on the leaderboards, but most
of you seem to be absent.

Robin



Re: New Golf

2007-01-04 Thread Andrew Savige
It seems to me that some of the solutions are not quite correct, failing the
test case:

 MD plus I

which should produce the answer MDI.

Please correct me if I'm wrong, but it seems that the shortest solutions
of szery, Sec and Jasper all fail this test case.

Falling back one stroke from 4e3 to 3999 remedies.

Please let me know if I've made a blunderific oversight.

Thanks,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-04 Thread Jasper

On 1/4/07, Andrew Savige [EMAIL PROTECTED] wrote:

It seems to me that some of the solutions are not quite correct, failing the
test case:

 MD plus I

which should produce the answer MDI.

Please correct me if I'm wrong, but it seems that the shortest solutions
of szery, Sec and Jasper all fail this test case.

Falling back one stroke from 4e3 to 3999 remedies.

Please let me know if I've made a blunderific oversight.


I've no doubt you're correct. 4e3 (vs 3999) seemed to bork for me
sometimes, but passed the test suite for my final solution.

I don't really mind, since it doesn't change my final position (nor Sec's)

Jasper


Re: New Golf

2007-01-04 Thread Andrew Savige
--- Stefan `Sec` Zehl (principal taunter of `/anick) wrote:
 Ok, count me as 
 
 romancalc.pl: 120.51 strokes (ok), md5=82eb4544217b1d7054bb90e9c75e3d27

Woohoo! Just two more diabolical test cases and I'll have caught the
elusive Sec. ;-)

You might call this golfing the post mortem ... speaking of which,
I bet Ton is still searching for that elusive 98. :-)

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-03 Thread Andrew Savige
--- Michael Wrenn wrote:
 OK! Here's what happened to me ... I went out to get some dinner and 
 returned to check on my solid 20th Place (securing a prized 
 Fonality/trixbox T-shirt) ... when what to my wondering eyes should 
 appear, but \'anick the Canuck  who was now TWO STROKES CLEAR! I CURSEd 
 and I SHOUTed and I called him some names| That Bastr/a//d! That  
 foo|bird! That Flamingo again!!! I'll catch him! I'll pass him! I'll 
 beat him this time! I'll punk him! I'll twizzle and addle his brain! To 
 the top of the board! Past Juho and ton! Now slash away, slash away, 
 slash away all!
 
 When I came to, I was still one stroke back and all my hair had been 
 yanked out and deposited on the floor next to me. That \'akinc! It was 
 after 1AM and I needed inspiration. I went into my closet and tried on  
 all of my T-shirts ... None of them fit! I needed a NEW one!
 
 So, I had another beer (a nice Belgian one) and kept at it and just 
 before 2AM, I saw the light! An extremely obvious 2 stroker that I had 
 tried earlier in a slightly different form. I could feel that feeling 
 of  cotton ...

Yes, doing battle with `/anick is perhaps the pinnacle of any golfer's
career. Michael, thanks for sharing that story; it was great compensation
for not having the pleasure of battling with `/anick hand-to-hand this
time around.

BTW, I've jotted down a few scrappy and informal fundamental insights
into this golf game at:

 http://www.perlmonks.org/?node_id=592689

Please let me know of other fundamental insights I've missed or any
blunderific overlooks that I've made. I'm not sure I like the term
fundamental insight and I'm open to persuasion as to a better term.
[Erm, I'm a bit ashamed to admit that I was provoked into writing these
notes in response to what I perceived (perhaps incorrectly) to be an
attack on perl golfers ... which I won't stand for ;-)].

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-03 Thread Yanick Champoux
On Wednesday 03 January 2007 05:42, Andrew Savige wrote:
 Yes, doing battle with `/anick is perhaps the pinnacle of any golfer's
 career. 

Flattering, but I have to disagree. It's akin to say that the most 
breath-taking act at the circus is the clown intermission. But still, I like 
to think that a clash with yours sequin-clad truly is, if not the most epic 
moment of a golf competition, at least the one with the most retellable 
value. :-)

 Michael, thanks for sharing that story; it was great compensation 
 for not having the pleasure of battling with `/anick hand-to-hand this
 time around.

Hopefully, next time we'll be able to once more cross blades. And 
maybe, just 
maybe, for once I'll be able to get the upper hand. (what? hope /does/ spring 
eternal)

 I'm not sure I like the term
 fundamental insight and I'm open to persuasion as to a better term.

I know I'm bending a lot the meaning of the word, but I like to think 
of your 
fundamental insights as golf koans. 

Joy,
`/anick


Re: New Golf

2007-01-03 Thread Yanick Champoux
On Tuesday 02 January 2007 22:32, Michael Wrenn wrote:
 Yanick Champoux wrote:
  Stefan `Sec` Zehl said:
  No. Look at \'anick for example (poor \'anick :)

 May I be the first to second that!

 poor, poor \'anick!

Now, now, now. Isn't there some tacit rule in the gentlemen's code of 
honor 
about winning and being gracious about it?

On the other hand, I can see that there is little point in winning if 
you 
can't point and snicker at the loser.

 First banshee mention of the entire contest! You should win a prize! :-)

Yeah, I should. And I would've if it wasn't for a certain someone... 
And no, 
don't look around like that. I'm talking about /you/.

 OK! Here's what happened to me ... [..]

Well, I must say that I felt pretty blue about losing that 20th 
position. But 
learning that in order to snatch it away from me you had to sacrifice the 
peaceful digestion of a festive dinner, a Belgian beer, the best part of your 
night and all of your cranial capilarity makes me feel much, much better. 
(hmm. I should find a way to phrase that such that make me sound a tad less 
moraly bankrupt)


 I am pleased to know you are after me! No one ever cared about me as
 much as you! I am touched by your kind words and your touching
 sentiment! 

aaah... err... well, you're welcome. But you do realize I was declaring 
war, 
vowing terrible retribution and all that stuff, right? 


 But, please don't get too close. 

Not a big proponent of keep your friends close, and your enemies 
closer, 
then? :-)


Joy,
`/anick


Re: New Golf

2007-01-02 Thread Jasper

Congratulations, Ton.

As if the outcome was ever in doubt.. :D

Now, as an afterthought, am I the only person to have missed the
perlgolf history book, and the only person who submitted a score that
didn't have something like : $;.=5x$_*8%29628

:)

I had a good time doing it, though. Thanks, Samy, kept me away from
the nephew and niece for a few days.

Jasper

On 12/25/06, Ton Hospel [EMAIL PROTECTED] wrote:

http://www.fonality.com/golf/

They are sneakily using it for recruiting (read the rules),
but in compensation it seems to have real prizes.
--
Sometimes a hacker has a problem, and he thinks to himself
'I know, I'll solve it with a regular expression!'. Now he has two problems.
-- Jamie Zawinski





--
Jasper


Re: New Golf

2007-01-02 Thread Stefan `Sec` Zehl

On Tue, Jan 02, 2007 at 10:13 +, Jasper wrote:
 Now, as an afterthought, am I the only person to have missed the
 perlgolf history book, and the only person who submitted a score that
 didn't have something like : $;.=5x$_*8%29628

No. Look at \'anick for example (poor \'anick :)

I had once toyed with roman numbers for a local perlgolf, and remembered
that there were already some solutions out there, which I quickly found
via google.

I feel stupid for not realizing that the s/\w+/${$}/ was optimizable.
But then, I only had half a day to spend on the golf.

Thanks for the game!

CU,
Sec
-- 
It is easy to be blinded to the essential uselessness of computers by
the sense of accomplishment you get from getting them to run at all.
  -- Douglas Adams


Re: New Golf

2007-01-02 Thread Andrew Savige
--- Jasper wrote:
 Congratulations, Ton.

Yep, I echo Jasper's congratulations Ton. What remains freakish is
the speed at which Ton posts a great score.

I'd also like to thank Samy. Having refereed similar sized tournaments
on my own, I know how exhausting and time consuming it is. Thanks Samy!

Here are some names I noticed playing in the fonality tournament and
their final placing from the season ending money list of 2002, as
noted in mtve's perl golf history tome:

 -
 1   Ton Hospel $4,384,000.00 (10/13)
 3   (-ugene van der Pijll  $3,540,000.00 (10/13)
 6   Juho Snellman  $1,264,000.00 (6/13)
 13  Jasper McCrea  $  719,600.00 (10/13)
 17  /-\ndrew Savige$  652,400.00 (8/13)
 23  `/anick Champoux   $  468,800.00 (9/13)
 27  Honza Pazdziora$  420,200.00 (9/13)
 35  Michael Wrenn  $  304,506.67 (8/13)
 57  Sec$  179,466.67 (4/13)
 -

Ah, the good old days. This was my first round of golf for four years
and I enjoyed the little battle at the end for positions 6-9 with my
old golfing buddies pijll, Sec, and Jasper. That little competition
within a competition motivated me to put in some extra last ditch
effort. Sorry 'bout that, Jasper. It never occurred, not in my
wildest dreams that you'd never heard of mtve's big book of golf!
Your name is mentioned in it a total of 97 times.

 Now, as an afterthought, am I the only person to have missed the
 perlgolf history book, and the only person who submitted a score that
 didn't have something like : $;.=5x$_*8%29628

Erm, Yes. You were the only golfer in the top ten who missed it.

And, equally fatal, (-ugene and I seemed to be the only ones who missed
using symbolic references. I sometimes admonish beginners on Perl
Monks, for example:

 http://www.perlmonks.org/?node_id=586152

where I said Symbolic references should be avoided as much as possible,
but forgot to add the caveat except during golf tournaments.

I look forward to the winner's post mortem analysis. :-)

Cheers,
/-\


Send instant messages to your online friends http://au.messenger.yahoo.com 


Re: New Golf

2007-01-02 Thread Jasper

On 1/2/07, Andrew Savige [EMAIL PROTECTED] wrote:


effort. Sorry 'bout that, Jasper. It never occurred, not in my
wildest dreams that you'd never heard of mtve's big book of golf!


Can someone send me a link? Terje's old link has expired, and there
doesn't seem to be an equivalent on his currently
extant-but-hibernating minigolf site.

Thanks,
Jasper

p.s. Andrew, don't worry, I was cursing you, too!


Re: New Golf

2007-01-02 Thread Daniel Tiefnig
Jasper wrote:
 Can someone send me a link? Terje's old link has expired, and there 
 doesn't seem to be an equivalent on his currently 
 extant-but-hibernating minigolf site.

http://terje2.frox25.no-ip.org/~golf-info/Book.html

It's linked on http://perlgolf.sourceforge.net/ and google finds it if
you search for perlgolf only.

lg,
daniel


Re: New Golf

2007-01-02 Thread Eugene van der Pijll
En op 18 maart 2002 sprak Andrew Savige:
 Allocating prize money for each of the 5 Perl Golf tournaments
 at $4 million per tournament, according to the formula used by
 the US PGA, produces the following tables.

That figure turns out to have been a bit optimistic...

En op 02 januari 2007 sprak Andrew Savige:
 Here are some names I noticed playing in the fonality tournament and
 their final placing from the season ending money list of 2002, as
 noted in mtve's perl golf history tome:
 
  -
  1   Ton Hospel $4,384,000.00 (10/13)

$4,384,350.00 now...

 It never occurred, not in my
 wildest dreams that you'd never heard of mtve's big book of golf!

I forgot all about it, until it was mentioned on perlmonks. Thanks Ted!

And thanks Ton, for your solution for that previous contest; and thank
you Andrew, for the competition. I won! ;-)

But most of all thank you Samy! It was fun!

Eugene
(now a professional golfer!)

-- 
Whatever else you say about it, this reduces the code from eleven lines
to six, which is good. -- Mark-Jason Dominus


Re: New Golf

2007-01-02 Thread Philippe Bruhat (BooK)
Le mardi 02 janvier 2007 à 10:13, Jasper écrivait:
 Congratulations, Ton.
 
 As if the outcome was ever in doubt.. :D

In the case where one of the players is actually hired by Fonality,
I wonder if s/he'll be authorized to write the same kind of code in
their production systems as the one they used to get noticed in the
first place...

If so, Fonality will have to run another golf course in order to hire
the maintainer!

-- 
 Philippe BooK Bruhat

 When you run from your problem, you make it that much harder for good
 fortune to catch you, as well. (Moral from Groo The Wanderer #14 (Epic))


Re: New Golf

2007-01-02 Thread Samy Kamkar
Michael, what an amazing story. I laughed, I cried, I moved you back 
down to 21. Just kidding!


Thank you all for playing! It was an awesome golf! Hope to join in on 
the next public golf.


ps, winners will be contacted shortly (or already have been) to receive 
their prizes!


Michael Wrenn wrote:

Yanick Champoux wrote:

Stefan `Sec` Zehl said:
 

No. Look at \'anick for example (poor \'anick :)



  

May I be the first to second that!

poor, poor \'anick!

He sets a fine example, doesn't he!

   Yeah. Whoever wrote that the one who doesn't learn from history is
condemned to repeat it was wildly optimistic. *sigh*

   But nevermind that blunderific overlook of the Great Thome of Golfic
Knowledge. Nevermind an obscenely tumefied forehead, caused by repeated
percussions against my desk during the ever-excruciating quest for the
next shaved stroke. What really make me wail like a tax-audited banshee
is that the referee just went through the last of the pending entries,
allowing m.wrenn to sneak one stroke ahead of me and bump me off the
top 20, literally yanking the prized t-shirt off my clenched fists.

  

First banshee mention of the entire contest! You should win a prize! :-)

OK! Here's what happened to me ... I went out to get some dinner and 
returned to check on my solid 20th Place (securing a prized 
Fonality/trixbox T-shirt) ... when what to my wondering eyes should 
appear, but \'anick the Canuck  who was now TWO STROKES CLEAR! I 
CURSEd and I SHOUTed and I called him some names| That Bastr/a//d! 
That  foo|bird! That Flamingo again!!! I'll catch him! I'll pass him! 
I'll beat him this time! I'll punk him! I'll twizzle and addle his 
brain! To the top of the board! Past Juho and ton! Now slash away, 
slash away, slash away all!



When I came to, I was still one stroke back and all my hair had been 
yanked out and deposited on the floor next to me. That \'akinc! It was 
after 1AM and I needed inspiration. I went into my closet and tried 
on  all of my T-shirts ... None of them fit! I needed a NEW one!


So, I had another beer (a nice Belgian one) and kept at it and just 
before 2AM, I saw the light! An extremely obvious 2 stroker that I had 
tried earlier in a slightly different form. I could feel that feeling 
of  cotton ...

   m.wrenn, if you are on this list, consider my fist -- yes, that same
fist that you so fiendishly robbed from its prize -- shaked in barely
supressed fury in your general direction. And mark my words: one day, I
shall have my revenge upon thee!

  
My general direction is South to you! (not to be confused with those 
Netherlanderthaliens). I can almost see your fist ... wait ... no ...  
that's the Statue of Liberty ... my bad!


I am pleased to know you are after me! No one ever cared about me as 
much as you! I am touched by your kind words and your touching 
sentiment! But, please don't get too close.

 Oh, and many thanks to the referee and Fonality for the course. It
was a blast!

Joy,
`/anick

  

Oh \'anick! Forever Joyful \'anick!

Thanks to Fonality and, of course, Samy Kamkar, for the course!

I was up at 3AM to see the board change to the Post-Mortem with my 
T-shirt hanging in the balance. I was at work at 11:30 before I 
officially won, when the front page results changed me from 21 to 20.


poor \'anick!

All the best in 2007!

Michael




Re: New golf Add 11

2002-10-15 Thread Michael W Thelen

* Terje Kristensen [EMAIL PROTECTED] [2002-10-14 13:33]:
 A new minigolf Add 11 has started today.
 url : http://terje.dev.webon.net/golf/?10

How is the tiebreaker calculated?

-- Mike

-- 
Michael W. Thelen
eval unpack u,'M*1C/2P,BDN-`U+C`A(RLG*3U^2\A+48O82UZ+SME=F%L*1C+B(G='.
'2HGM+Z,DU4SU(B%!.T9=5#HF-5(H)2%%/$907$`Z)B5#.E8U4BM@2`G+EPD$+R(I.P``'



Re: New golf

2002-10-15 Thread Terje Kristensen

It's ton's high_ascii that was used in TPR4c.
As the rules stated back then :

The tiebreaker favors characters with high ASCII values below 127. The tiebreaker is 
basically determined by: 

1 - (sum of character ASCII values (below 127))/(total number of characters * 126)

Regards
Terje K

- Original Message -
From: Michael W Thelen [EMAIL PROTECTED]
Date: Tue, 15 Oct 2002 09:31:56 -0600
To: Terje Kristensen [EMAIL PROTECTED]
Subject: Re: New golf Add 11


 * Terje Kristensen [EMAIL PROTECTED] [2002-10-14 13:33]:
  A new minigolf Add 11 has started today.
  url : http://terje.dev.webon.net/golf/?10
 
 How is the tiebreaker calculated?
 
 -- Mike
 
 -- 
 Michael W. Thelen
 eval unpack u,'M*1C/2P,BDN-`U+C`A(RLG*3U^2\A+48O82UZ+SME=F%L*1C+B(G='.
 '2HGM+Z,DU4SU(B%!.T9=5#HF-5(H)2%%/$907$`Z)B5#.E8U4BM@2`G+EPD$+R(I.P``'
 
 

   
-- 
__
Download the FREE Opera browser at www.opera.com/download/

Free OperaMail at http://www.operamail.com/

Powered by Outblaze