in reply to ASCII Pattern - Golf
($a,$b)=@ARGV;for($y=9;$y>0;$y--){$c=abs$b-$y;print$/,map{$d=abs$a-$_;$c>$d?$c:$d}(1..9)}
without cheating it's a few characters longer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ASCII Pattern - Golf
by cLive ;-) (Prior) on Sep 19, 2003 at 02:38 UTC | |
|
Re: Re: ASCII Pattern - Golf
by devslashneil (Friar) on Sep 19, 2003 at 02:31 UTC |