|
For this assignment you will work with one partner, in a group of two. This assignment has two parts to it. I would like you to collaborate with your partner on both parts of the assignment.
Part one: Read through the code that you can find here: petri.dbn. Write comments that explain each constant and each command in the code. For examples of how to write comments, you can consult the logo_commands.dbn file. I will be reading the your comments to see if you have understood the code.
Part two: After you have read, understood and commented the code, implement a command called shouldTurnOn?. Your shouldTurnOn? command should implement the rule(s) of the Seeds game described and illustrated by Resnick and Silverman in their essay Exploring Emergence. To implement this command you will probably not have to write too many lines of code (my version is 21 lines long), but it might take you a while to figure out how to write the command. If it helps you, try changing or adding to the initialize command so that more or fewer squares are turned on at the start of the simulation.
|