Ticket #4099 (closed enhancement: fixed)
TurtleArt does not support simple recursion
|Reported by:||dmd||Owned by:||bss|
|Component:||turtleart-activity||Version:||Development build as of this date|
|Keywords:||recursion recursive turtleart||Cc:|
|Action Needed:||never set||Verified:||no|
|Deployments affected:||Blocked By:|
TurtleArt as currently implemented does not appear to support even simple recursion, so it can't do any of the more interesting things like drawing a Sierpinski triangle or a Koch snowflake or even computing a Fibonacci number.
This could be fixed by allowing a stack to take a box (or, better, two boxes) as an argument, such that the box would be assigned that value, and when the stack exits, the box would return to its previous value.
LOGO is a great language, but removing recursion from it strips it of most of its greatness. Recursion is an important concept that really should be available to play with, even in a simple environment like this.