In the comment section below, add your interpretation of this code. Rather than copying the text of the blocks, tell us in your own words what is happening.
Comments
It seems that there are two main chunks:
1) Clearing out: Remove agents, reset the terrain to the default, and set the counts back to zero.
2) Create 50 fish and assign attributes such as size, elevation, and energy. With that, they are also scattered around the screen.
Answer
It is telling the program to clear everything and reset the data boxes to zero. Then it is saying to create 50 fish.
Different colors and scatter them including on the z axis which is 3D
Answer
This setup code seems to reset the world, including the data boxes, and to create 50 anglefish, of different colors. It scatters them and then also sets their "z" to a random amount. Finally, it sets their "fish energy" to a random amount between 1-9.
Answer
6 word summary: World Cleared. Fish Made. Scattered, energy.
Answer
Fish are being created with random energy levels and scattered randomly from 2-26 in the z direction. Data boxes are set to zero.
Answer
1. The world is set to the initial settings, all the same number of agents, and terrain the same.
2. Data boxes are cleared to start initial count of agents
3. 50 fish are created with specific traits including energy level
Comments
It seems that there are two main chunks:
1) Clearing out: Remove agents, reset the terrain to the default, and set the counts back to zero.
2) Create 50 fish and assign attributes such as size, elevation, and energy. With that, they are also scattered around the screen.
Answer
It is telling the program to clear everything and reset the data boxes to zero. Then it is saying to create 50 fish.
Different colors and scatter them including on the z axis which is 3D
Answer
This setup code seems to reset the world, including the data boxes, and to create 50 anglefish, of different colors. It scatters them and then also sets their "z" to a random amount. Finally, it sets their "fish energy" to a random amount between 1-9.
Answer
6 word summary: World Cleared. Fish Made. Scattered, energy.
Answer
Fish are being created with random energy levels and scattered randomly from 2-26 in the z direction. Data boxes are set to zero.
Answer
1. The world is set to the initial settings, all the same number of agents, and terrain the same.
2. Data boxes are cleared to start initial count of agents
3. 50 fish are created with specific traits including energy level
Answer
i found it! yay! Clear --> FISH --> scatter
Answer