knerr cs21 notes...

back to schedule

WEEK12: linked-lists
---------------------------------------------------------------
 W: pre turkey-day fun


 - we'll do more linked-lists next week....


RECURSIVE TREES

 - see if you can use your turtle class to draw a tree recursively:

tree pic

 - copy my tree.py file and follow the algorithm outlined there
 - to make it work as written you will need to modify your turtle.py
   class to accept color and line width, and use them in your goto
   and forward functions
 - I think I also use a setHeading method that you need to add to your
   turtle class

 - if you get that working and have time, add more trees!

trees pic