Anyone thinking of posting a Golf game should have a look at chipmunk's Tips on Writing a Golf Challenge.
Anyway, 90 chars:
#!/usr/bin/perl $s.=rand()<.5?H:$"for+a..gr; $_=$s; $c=y/H/H/; s/(H+| +)/"|".length$1/ge; print"$s\n$_|\n$c\n"
--
John.
In reply to Re: YAGG (Yet Another Golf Game)
by jmcnamara
in thread YAGG (Yet Another Golf Game)
by Necos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |