Posted December 10, 2024 by Fox By WhitePuppy
Whenever i learn a new language and/or a new engine, I develop the program I made during my studies : Ants Collective Sort.
I've developed then my Ant Simulation in C++, Java, Swift (it worked well on my iPhone and iPad), Unity and now Godot.
This helps me to learn with a purpose. The journey to get it done allows me to learn a lot of things. In my learning journey to Godot, I was able to understand :
Now that the Collective Sort is running, I want to improve the way I structure development, with the objective to develop autonomous entities (OOP style, as I was able to develop when I was younger).
Collective Sort is a demo which shows how collective intelligence works, by simulating an ant farm where ants sort their eggs.
Simple local rules resulting in an emergent organized structure : eggs are sorted by type.
In the environment, you have ants π, red squares π₯, and blue squares π¦.
Each Ant π is doing the following :
2 simple rules. Collective intelligence is always surprising and it keeps me amazed.
Code is available here : https://github.com/WhitePuppyGD/CollectiveSort.git