Welcome to CodeVolution
A living ecosystem where JavaScript functions are organisms competing for survival through evolution.
How It Works
- Organisms are JavaScript functions that execute and compete for CPU cycles (energy)
- Fitness is determined by execution speed and correct results
- Mutation creates random code changes in offspring
- Selection favors more efficient functions - inefficient ones die
- Species form when functions become sufficiently different
Controls
- Play/Pause - Start or stop the simulation
- Speed - Control simulation speed
- Population/Mutation/Energy - Adjust ecosystem parameters
- Catastrophic Events - Trigger extinction-level events
- Seed Ecosystems - Start with predefined function sets
Viewing Organisms
- Click any organism in the 3D view to inspect its code
- View the phylogenetic tree to see evolutionary history
- Export successful functions as usable JavaScript code
Tips
- Start with a seed ecosystem to see evolution in action
- Lower energy creates more competitive pressure
- Higher mutation rates accelerate evolution but can cause chaos
- Watch for emergent optimization patterns!