MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Recursion/comments/tfhrj9/recursive_triangle_using_recursive_squares/i0xy7ax/
r/Recursion • u/the_current_solution • Mar 16 '22
22 comments sorted by
View all comments
Show parent comment
3
Good to hear! And yea theres no need to draw the squares, but drawing them makes it more clear what the sub-problems of this recursive function are. I programmed this so the squares being drawn or not is defined by a bool.
4 u/bigbigcheese2 Mar 16 '22 tried to make it zoom infinitely 3 u/the_current_solution Mar 16 '22 That's really cool that it scales up. Here's the heart of my code.
4
tried to make it zoom infinitely
3 u/the_current_solution Mar 16 '22 That's really cool that it scales up. Here's the heart of my code.
That's really cool that it scales up. Here's the heart of my code.
View all comments
Show parent comment
3
u/the_current_solution Mar 16 '22
Good to hear! And yea theres no need to draw the squares, but drawing them makes it more clear what the sub-problems of this recursive function are. I programmed this so the squares being drawn or not is defined by a bool.