in reply to (Golf) Decorating the Christmas Tree
Update: Curses! foiled again :-)$j=-1;print" "x(--$h),map({$_==1?"*":rand()<$f?(qw(0 @ * +))[rand 4]:" +="}1..($j+=2)),$/for 1..$h
Though japhy's reply does lead to this 87 character answer:
$j=1;print$"x--$h,($_-1?map rand>$f?"=":qw(0 @ * +)[rand 4],1..($j+=2) +:"*"),$/for 1..$h
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (Golf) Decorating the Christmas Tree
by japhy (Canon) on Dec 03, 2001 at 23:12 UTC | |
|
Re: Re: (Golf) Decorating the Christmas Tree
by japhy (Canon) on Dec 04, 2001 at 00:08 UTC | |
by dragonchild (Archbishop) on Dec 04, 2001 at 01:49 UTC | |
by runrig (Abbot) on Dec 04, 2001 at 01:54 UTC |