in reply to Re: Re: (Golf) Let's go bowling
in thread (Golf) Let's go bowling
Golf code isn't meant to be pretty or even readable. It's meant to be compact. :)map{s/X/10/;s#/#10-$p#e;$p=$_}@c=@_;$t=$f=$h=0;while(@_){$s=shift@c;$_ +=shift;/[X\/]/&&($t+=$s+$c[0]+(/X/?$c[1]:0),$h=0,++$f>9?last:next);$f +++,$h=0 if$h;$t+=$s;$h++}$t
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: (Golf) Let's go bowling
by dga (Hermit) on Aug 15, 2001 at 00:32 UTC |