Name: Flavia Rodrigues
Period: 7
Assignment: Lab #10
This lab focused on clones, modeling and game design. There was a lot of cloneing and lists. In the pair programming me and my partner created a simplified game. Mine had a crab who had to throw lighning bolts at the fish. He would do this by making clones of the lighting bolt.s
My solution for this problem was to create a cloud, a character and rain. I programmed the cloud so it would go back and forth across the screen and shoot down rain drops by making clones of it. I tied the charcters movement to my mouse so wherever my mouse goes, so does the character. Then When he touches water, he will shrink and shoot out a clone of himself. Its actually super cute. I used a lot of sensors in this game so they could sense when to disappear or shrink.
My solution was basically just making a list the adding the vaiables to the list every second, then it would start over if i press space. Then I ran the simulation 5 times and made graphs from it.
1.What data is attached to each clone? That is, what is changed on each clone that allows for the rabbits and foxes to appear/disappear?
When the character starts as a clone, it moves around and reproduces until it touches a fox. When the rabbit touches a fox, it disappears. For the fox, he moves around and reproduces as well. The fox has to eat rabbits or he'll disappear. If he does touch a bunny, his death rate decreases.2. Are the simulation results the same each time? Why or why not?
No, they are always different because the locations of the animals are random.