Open comments for this post
Milestone #6: Analytics & Data Intelligence! 📊🧬
Artificial Life Simulator just got its own “Control Center”. Now, we don’t just watch creatures move, but analyze their behavior in real time through statistical data.
What I added:
Real-time Analytics Dashboard: I added a dynamic information panel that tracks the number of Preys, Predators and the current day/night status.
Population Dynamics Graph: I integrated a visual history graph (Prey vs Predator history). Now you can visually see their life cycle and the Lotka-Volterra phenomenon unfolding before your eyes.
Stability & Debugging: With the new statistics, monitoring the average speed of Preys allows for precise control of the evolution of the species. We now have the tools to see if an ecosystem is headed for collapse or prosperity.
Open comments for this post
Milestone #5: Survival of the Fittest & The Night Cycle! 🌙🦊
The evolution continues! After DNA, it’s time to amp up the risk and make the ecosystem truly competitive. The digital world has become more dangerous than ever!
What I added:
The Day/Night Cycle: The environment changes dynamically. At night, Predators rely on hearing/luck, as their vision is dramatically reduced, while Preys recover energy.
Predator Nerf & Mortality: Predators are no longer immortal. With increased energy drain at night and adjusted movement limits, starvation is now a real threat. If they don’t hunt effectively, the system will eliminate them.
Ecological Balance: I fixed the “endless energy bug” (double food spawn), making the death of Predators part of the life cycle, returning resources to the grid.
The simulation now runs with absolute stability and the competition for survival is fiercer than ever! 🧬🔥
Open comments for this post
Milestone #4: Evolution & The Circle of Life! 🧬🌿
Hey everyone! Milestone 4 is officially live, and this might be the coolest update yet. I just introduced DNA, Mutations, and Ecological Decomposition to my Artificial Life Simulator. The digital world is now completely unpredictable!Here is what’s new:
What I Built:
Prey DNA & Smart Vision: Preys are no longer identical or blind! Each one is born with unique genetic traits: Speed and Vision Range. Instead of moving randomly, they now scan the map, find the closest food within their vision, and actively hunt it down.
The DNA Trade-off: Nature has a cost! High speed and big vision consume more energy per frame (Energy Drain = speed + vision/10). Super-creatures drain their energy fast, while slow, low-vision creatures are incredibly energy-efficient.
Random Mutations (Mitosis 2.0): When a prey reproduces, its child has a 20% chance to mutate. It randomly copies the parent’s traits but alters them by +-1 speed or +-2 vision.
The Circle of Life (Decomposition): When a creature dies—either hunted by a predator or from starvation—it doesn’t just vanish. It decomposes on the spot, turning into a cluster of yellow plants. This creates dynamic “feeding zones” where the battle for survival resets!
Open comments for this post
Milestone #3: The Food Chain is Alive! 🦊🌱
Hey everyone! I’m super excited to share the final milestone of my Artificial Life Simulator. Today, I turned a simple survival script into a fully functioning, two-level digital ecosystem.
Here is what’s new:
What I Built
The Predators (Red Cells): I introduced a new species to the world! Unlike the green guys, these red cells don’t move randomly. They use a cool math trick (np.linalg.norm) to calculate the distance to every single green cell, find the closest one, and hunt it down!
The Food Chain: Green cells eat yellow food to gain energy and split into two (Mitosis) when they get big enough. But now, red cells are hunting the green cells! When a predator catches its prey, it eats it, steals its energy, and the green cell is gone.
Smart Code Structure: Instead of copy-pasting code for every single creature, I moved everything into dynamic Python lists and dictionaries. Now, the simulation can handle hundreds of cells smoothly!
Thanks for following along on this building journey!
Open comments for this post
Milestone 2: Adding Environmental Interaction & The Hunger Mechanic
Open comments for this post
Milestone 1: Creating the World & The First Sign of Life