In this question, you will have atoms change their color based on their energy.
First play around with changing the color of turtles. Try typing ask turtles [set color white] in the Command Center. Try whatever colors you want. You can also ask a single turtle to change its color by typing for example ask turtle 0 [set color red]. All the turtles have a number.
You can set the color to a different shade with the scale-color command. The whole command for a shade of a color is scale-color color number range1 range2. This picks a shade of color based on where number falls between range1 and range2. The closer number is to one end of the range, the lighter the output color will be and the closer it is to the other end of the range, the darker the output will be. Try using this to change the atoms colors to different shades.
When you are comfortable with that, go into the code tab and find where the turtles calculate their energy. Use the calculated energy to set their color. So each turtle should have a different color or shade of color based on its energy. This could be tricky, so feel free to ask for hints if you can't figure it out.
Do you notice any patterns in the energy of atoms?