Re: Two new golfs are available

[email protected] (Mtv Europe)
Newsgroups perl.golf
Message-ID <[email protected]>
Hello Danny!

[email protected] (Danny Rathjens) wrote:
> Jasper McCrea wrote:
>>>Easy one ("Ordered fractions") will be finished on 2002-09-19 10:00:00 UTC
>> I think we should have an explanation of your 71. 
>
> He encoded the whole list of answers like so:
> then he just loops through that list of chars

Yep, basically description is right.

ord=~/^[1-@ARGV]/&&print"$'/$&
"for"[QG=3\\)H\37S4I^\25_J5U K+a6ALWb\13"=~/./g

(in original code all \number things are replaced by hardcoded asciis,
so the final length is 71)

Table approach is known for golf (check also Ton's Maxigolf 1 "Stones"
at http://www.xs4all.nl/~thospel/golf/maxigolf1.html ), so i decided
to try it.

'normal' order,    chr (first_digit * 10 + second_digit)
gives value with ascii code 13 that could cause problems anywhere with
copying/pasting, so opposite order was used.

Needless to say, Ton's winning solution is much more interesting.
It reveals darkest corners of mystical @{ } constuct, and shows
secret ways of alien's mind operations.

---
Mtv Europe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.