[Jprogramming] Sierpinski triangle
Oleg Kobchenko
olegykj at yahoo.com
Mon Sep 4 13:08:33 HKT 2006
Here's a 37 character Sierpinski, which actually
uses self-similarity
' '(((#~2%~1+1{$),"1]),],.,.)^:4,.'*'
--- Dan Bron <jf at dbron.net> wrote:
> Ok, I guess Roger isn't going to claim his prize and present the next round for golf, so here's
> one: generate a Sierpinski triangle.
>
> A Sierpinski triangle looks like this:
>
> *
> * *
> * *
> * * * *
> * *
> * * * *
> * * * *
> * * * * * * * *
> * *
> * * * *
> * * * *
> * * * * * * * *
> * * * *
> * * * * * * * *
> * * * * * * * *
> * * * * * * * * * * * * * * * *
>
>
> My tee off:
>
> ' *'{~(-i.-16)|."_1]1j1#"1|.0=17 b./~i.16
>
> Which is 41 characters.
>
> -Dan
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Programming
mailing list