Computer Science Canada Sierpinski Triangle |
Author: | gitoxa [ Thu Dec 04, 2008 8:56 pm ] | ||
Post subject: | Sierpinski Triangle | ||
Me and a friend were working on this in class today while practicing recursion, and I put the finishing touches on it. It's not perfect at higher stages, but it does the job fairly well. Enjoy ![]()
|
Author: | ecookman [ Thu Dec 04, 2008 9:27 pm ] |
Post subject: | RE:Sierpinski Triangle |
i do not understand the "one more deep" function mind explaining? (looks as if it just draws red triangles :confused: ![]() |
Author: | HellblazerX [ Thu Dec 04, 2008 9:45 pm ] | ||
Post subject: | Re: Sierpinski Triangle | ||
By "one more deep", he means adding one more iteration to the triangle (though it is a funny, and grammatically incorrect, way of wording it). And in case you don't know what a Sierpinski triangle is: http://en.wikipedia.org/wiki/Sierpinski_Triangle Also:
I don't believe that's possible, and you should add some idiot-proofing for Max. Good job though. |
Author: | ecookman [ Thu Dec 04, 2008 9:47 pm ] |
Post subject: | RE:Sierpinski Triangle |
ooh I feel like an idiot right now.... i thought he made up the triangle ![]() thanks HellblazerX |
Author: | Tyr_God_Of_War [ Thu Dec 04, 2008 11:23 pm ] |
Post subject: | RE:Sierpinski Triangle |
Very awesome. the (0>L>1500) is a bit misleading as small numbers don't work well. anything less then 10 doesn't really show up |
Author: | gitoxa [ Fri Dec 05, 2008 11:29 am ] | ||
Post subject: | Re: Sierpinski Triangle | ||
HellblazerX @ Thu Dec 04, 2008 9:45 pm wrote: By "one more deep", he means adding one more iteration to the triangle (though it is a funny, and grammatically incorrect, way of wording it). And in case you don't know what a Sierpinski triangle is:
http://en.wikipedia.org/wiki/Sierpinski_Triangle Also:
I don't believe that's possible, and you should add some idiot-proofing for Max. Good job though. Up - Up one stage Down - Down one stage Although quite frankly I really don't care, you get the idea if you have any idea what a Sierpinski Triangle is. ![]() And why should I add input error checking for a little program like this? How about if you're an idiot you're not allowed to use it ![]() |
Author: | Nick [ Fri Dec 05, 2008 1:12 pm ] | ||
Post subject: | RE:Sierpinski Triangle | ||
a neat little input error checking line I like is:
|