in reply to
New golf game (for the extremely bored)
Two solutions of 38 characters:
# 1 2 3
perl -le'print+(H,T)[rand 2]for a..gr'
perl -le'print 1<rand 2?H:T for a..gr'
perl -le'print+rand>.5?H:T for a..gr'
Same as 1..200, really ;)
Basically you just use letters instead of numbers.
a..z yields the 26 characters of the alphabet,
a..az yields those and another 26 prefixed with a
a..bz yields those and another 26 prefixed with b
and so on. Same system, more "numbers" ...
Incidentally a..gr yields 7*26 + 18 "numbers".
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (17 votes),