in reply to README: The Sand Wedge (Re: (Golf) Decorating the Christmas Tree)
in thread (Golf) Decorating the Christmas Tree

You don't need the join. Just use the fact that print takes a list.
print$"x$h--,"*\n",map{$"x$h--,(map{rand>$f?'=':qw(* 0 @ +)[rand 4]}0. +.2*$_),$/}1..$h
85 chars (without assignment). :-)

At some point, I'd like someone to explain to me how that nested map doesn't get confused. *laughs*

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

  • Comment on Re: README: The Sand Wedge (Re: (Golf) Decorating the Christmas Tree)
  • Download Code