Mostly your garden variety alphabet soup obfuscation, but you gotta start somewhere right? I've considered adding code to print less whitespace with lower numbers when printing a high number of rows, but decided not as it would make the output less like a pyramid (which is the desired effect after all).#!/usr/bin/perl $/=length($"=int<STDIN>)+1; for$!(1..$") {print$_<$"+1-$!?" "x$/:$_<=$"?sprintf"%*d",$/,$"+1-$_:$_<=$"+$!-1?spr +intf"%*d",$/,abs$"-1-$_:$_==2*$"?"\n":""foreach(1..(2*$"));}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A first attempt at obfuscation.
by wolfger (Deacon) on Feb 17, 2005 at 14:46 UTC | |
by Pic (Scribe) on Feb 17, 2005 at 20:21 UTC | |
|
Re: A first attempt at obfuscation.
by jdalbec (Deacon) on Feb 21, 2005 at 13:56 UTC | |
by Pic (Scribe) on Feb 22, 2005 at 00:24 UTC | |
|
Re: A first attempt at obfuscation.
by tcf03 (Deacon) on Feb 18, 2005 at 22:35 UTC |