|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: (Golf) Tic Tac Toeby belg4mit (Prior) |
| on Jun 07, 2004 at 04:22 UTC ( #361866=note: print w/ replies, xml ) | Need Help?? |
|
If you relax some of the requirements the code below comes in at 147 The relaxation's are you automatically lose if you try to cheat :-P i.e; given invalid input UPDATE: this can be remdedied with a goto but that brings it up to 153. The output is a little jury-rigged. I use 0 instead of O to allow for some shaving. Also, instead of where you die $p, the loser dies in this game. UPDATE 2: 144
I should mention, I really like the way you use $_. It takes a double-take or two to figure out what's going on but it's rather elegant.
--
In Section
Obfuscated Code
|
|
||||||||||||||||||||