He encoded the whole list of answers like so:
1/9 -> 91
chr 91 == "["
so "[" stands for 1/9
then he just loops through that list of chars
if the ordinal value of the char starts with a number less than or equal 
to the commandline arg
then he undoes the encoding the rest of the way by printing
the second digit "/" first digit
$'/$&

Very cool. I thought of doing the same encoding thing but my skills were 
too weak
too implement it, 8^)

Jasper McCrea wrote:
> Mtv Europe wrote:
> 
>>Hello All!
>>
>>Two new minigolfs are available at http://terje.dev.webon.net/golf/
>>
>>Easy one ("Ordered fractions") will be finished on 2002-09-19 10:00:00 UTC
>>and hard one ("Forth") on 2002-09-24 10:00:00 UTC.
> 
> 
> I think we should have an explanation of your 71. 
> 
> Jasper:wq


-- 
      _.,-*~`^'~*-,._ Danny Rathjens _.,-*~`^'~*-,._
Firecast: Rock solid kiosk software: http://wirespring.com

Reply via email to