Nothing due
A color is selected from read the green folder, then the GA eventually turns all the colors on the wheel into a color similar to the target
*Due to the brightness being turned down, sometimes when the color on the lights is very dim, it's so dim it doesn't even display the color, which is why it looks like some lights go out occasionally
What interactive element did you add? Why did you make that choice? How did you go about learning to use that component?
I made it so that when you put a color over the sensor and hit abutton, that new color becaomes thetarget color. I chose this because it seemed easy enough and did not require sautering new part. I used the color sensor example code and trial and error.
What changes did you make to the code or if you designed the code from scratch, how did you approach your algorithm design? How did that change the behavior from the original program?
I went through the design and mostly change the code at the start. Before, it hard coded a target color, but now the target color is variables that are taken from the sensor when the but is hit. I also decreased the delay between the loop of generating and chagnging the population. And I also added code that printed out how close each of the the colors were to the target color.
What issues and challenges did you encounter? How did you get around those obstacles?
I did not fully understand how genetic algorithms worked, but after hmoework two they seem more clear to me. another problem I faced was getting the functions from the sensor code to work with the sample code since they used slighly different syntax. However, after trial and error it worked out.
What changes would you make on a future iteration of your project?
I think I would like to make it so the colors would be organized so that the color that was the closest to the target color was in the light right next to the target color, and the second closest was in the light next to that one, and etc. I think I would also make it so that the code stop generating new populaitons when all members of the population are within a certain range of similarity to the target color.