http://qs1969.pair.com?node_id=128628


in reply to andye Re: "Countdown" (golf)
in thread "Countdown" (golf)

As always, removing the trailing semi-colon helps. :-)

Excellent solution!

Update: Of course (and this wasn't specified, so it's cool!) ... this won't work with duplicate letters. blakem's does, yours doesn't. I would suspect the gameshow, though it wouldn't say this, would never give dupes.

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Replies are listed 'Best First'.
Re: Re: andye Re: "Countdown" (golf)
by $code or die (Deacon) on Nov 30, 2001 at 20:46 UTC
    It can give dupes. In fact sometimes, the letters are so bad that the best the contestants can do is get a 4-letter word.

    I couldn't find the offical Countdown website on channel4.com. But there is more info about how the game is played here.

    Simon Flack ($code or die)
    $,=reverse'"ro_';s,$,\$,;s,$,lc ref sub{},e;$,
    =~y'_"' ';eval"die";print $_,lc substr$@,0,3;