Preston Decker's Tenth CS151 Homework Preston Decker's Tenth CS151 Homework
A dictionary is different than a list in that it can take symbols and store them, whereas a list only stores numbers. This is quite appropriate for work with lsystems, as they are based on symbol replacement.
The algorithim for my final scene, which Robin aided me incredibly in making, first creates a window and sets window parameters. Next it sets lsys equal to the empty list, and then creates three different lsystems, appending each of them into the Lsystem function. Next, the symbols are passed in for the lsystems, and then comes a shiftx direction, which is put to use in the for loop below it. The for loop runs through position directions that change where each tree is placed, this for loop is why we appended each lsystem to the Lsystem function. We had also imported a building, the building seen in my scene, from Robin's city2 code, as my building from that project lacked a win parameter. A for loop runs through instructions for placement of the building.
Finally, I can't thank Robyn enough for his help, he essentially took more than an hour
on friday afternoon to help me finish this, going through his entire code with me, explaining
it and transferring it to my project. I had gone in to try to get help on both Wed. and Thurs.
nights, but it did not work out, and I don't think I would have gotten this done without Robin. In addition to Robin I also recieved help from the usual sources (TAs, other students), as well as the code you posted for those who didn't have a working lsystem3 function for our lab number 11)
