This site requires JavaScript, please enable it in your browser!
Greenfoot back
GreenJ
GreenJ wrote ...

2013/11/13

Recursion vs. Multithreading

GreenJ GreenJ

2013/11/13

#
I just submitted my first Scenario. In order to explain recursion on a basic level, I started with a Turtle project by Paul Clark and Poul Henriksen that I found right here. TreeTurtle is a simple demonstration of how recursion works. Then, my idea was to use the object orientated approach of Greenfoot in order to replace recursive method calls by respawning turtles. Instead of using the clone( ) method, I went for the built-in World method addObject. I wonder if the resulting class MagicTurtles can faciliate the understanding of recursion, or if this process forking concept is too different from recursion (way back is not needed, e.g.) and thus rather confusing students?
You need to login to post a reply.