develooper Front page | | Postings from August 2002

putting practice

Thread Previous | Thread Next
Greg Allen
August 30, 2002 02:14
putting practice
Message ID:
Okay, so I've decided to practise my golfing before the next apocalypse (after
steadfastly refusing to try -n0 //m in my last outing, and just discovering
~$&). I thought maybe I should devise my own problem to golf. But then not 5
minutes later I stumble across an excellent candidate due to Christian
Neukirchen. The problem is a text scrambler which does this:

#    (1)  Only letters will be encrypted.
#    (2)  Words with less than 3 letters will be reversed.
#    (3)  Words with more than 3 letters will be scrambled this way:
#           * All letters on even locations move to the left-hand side.
#           * All letters on odd locations move to the right-hand side.
#           * A "`" gets between the both sides if the word has more
#             than 4 characters.

#    The only time anyone has tried to make a problem for me was those
#    owners, so called, self-styled owners of Gosling Emacs.
#            -- RMS "Lecture at KTH", 30. October 1986
#    =>
#    ehT olny tmie ayn`noe sah tid`re ot mkae a polm`rbe rof em saw toe`hs
#    onr`wes, os cle`ald, slef-sye`tld onr`wes fo Gsig`oln Eas`mc.
#            -- SMR "Lcue`etr ta HTK", 30. Otbr`coe 1986

post your best encoder to the list... my feeble effort soon.


Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About