Sorry about the title! 😅 But it fits the submission so well, I couldn't resist. No disrespect intended, Toriyama sensei!
My submission allows you to place your first dragon ball on a 3D Earth by shift-clicking somewhere on its surface. It then runs an evolutionary algorithm to optimize the locations of all the other balls so as to maximize the sum of the distances between all pairs, penalizing balls for being in the water.
Sorry about the title! 😅 But it fits the submission so well, I couldn't resist. No disrespect intended, Toriyama sensei!
My submission allows you to place your first dragon ball on a 3D Earth by shift-clicking somewhere on its surface. It then runs an evolutionary algorithm to optimize the locations of all the other balls so as to maximize the sum of the distances between all pairs, penalizing balls for being in the water.
Video: https://youtu.be/YaOUmnvOWC0 Try it yourself: https://dragonball_evolution.playcode.io Code: https://playcode.io/dragonball_evolution
Disclaimer: There are many ways to improve this code that I didn't have time for. For example: