4 ms·
One of the more fun/creative things I've done with code involved playing with Artificial Life. I put up a repository here: https://github.com/secretGeek/robots-
by LeonB 7y ago
One of the more fun/creative things I've done with code involved playing with Artificial Life. I put up a repository here: https://github.com/secretGeek/robots-versus-electric-sheep https://github.com/secretGeek/robots-versus-electric-sheep
This was a C# program (with a winforms frontend) that simulated several life forms interacting, and included a simple genetic algorithm. It was a lot of fun to write and tinker with.
"Two species, the blue robots and the gray sheep, wander around a paddock, competing to eat grass."
"They can breed only with their own species, and their offspring will inherit genes from both parents (with some mutation possible). Genes control the animal's inquisitiveness and other characteristics."
"It is strangely mesmerizing."
- karmakaze 7y agoThis is also my favorite type of program, where you coded all the parts but the result is unexpected and often surprising. Another kind that's great is when you start building from opposite ends using whatever tech you pick or build and somehow when they meet things line up like you planned it all along.