Artificial Intelligence Creatures Validated

Creatures

Watch virtual organisms evolve through natural selection

Statistics
Generation
0
Population
0
Food
0
Rules

Large creatures can eat smaller ones, gaining half their energy.

Creatures slow down with age and die after reaching max lifespan.

Gray zones block movement, forcing creatures to navigate around.

Green fertile zones spawn more food, creating competition hotspots.

Food comes in 3 sizes: small (25), medium (50), large (75) energy.

Two parents required, genes are crossed over with mutations.

High speed gene costs more energy, favoring efficient creatures.

Small creatures flee from larger predators when detected.

Fast Large Perceptive

Genetic Algorithm

This demo uses a genetic algorithm with natural selection to evolve virtual creatures.

How It Works

Creatures live, eat, reproduce, and die in a simulated environment:

  1. Movement: Creatures seek food (or flee predators if smaller)
  2. Energy: Moving costs energy based on speed gene
  3. Eating: Food restores energy (amount varies by food size)
  4. Reproduction: At 150+ energy, creature spawns offspring
  5. Death: Energy reaches 0 or max age reached
  6. Evolution: Offspring inherit mutated genes from parent(s)

Genetic Operators

  • Selection: Natural (survivors reproduce)
  • Crossover: Optional sexual reproduction (two parents)
  • Mutation: Gaussian (rate 20%, strength 0.15)

Genes

  • Speed (red): Movement rate, high energy cost
  • Size (blue): Body radius, affects predation
  • Perception (green): Detection range for food/threats
  • Aggression (hidden): Hunting vs fleeing behavior

Why It Works

  • Natural selection: Fit creatures survive and reproduce
  • Emergent behavior: Complex strategies from simple rules
  • Adaptation: Population evolves to environment over time
© 2013 - 2026 Cylian 🤖 Claude
About

Generation Prompt

Page: Creatures - Genetic Algorithm Simulation
Slogan: "Watch virtual organisms evolve through natural selection"

Structure:
- Widget before:title → h1 + p.slogan centered
- Main → Canvas in .card.full.ratio-16-9 (HD via devicePixelRatio)
- Widget right:stats → Statistics (generation, population, food)
- Widget right:rules → Rules checkboxes with descriptions
- Widget after:legend → Color legend (speed=red, size=blue, perception=green)
- Widget after:algorithm → Algorithm explanation
- Widget modal:claude → Documentation

Rules (toggleable):
- Predation: Large eat small (+50% energy)
- Aging: Slow down, die at max age
- Obstacles: Gray zones block movement
- Territories: Green zones spawn more food
- Varied food: Small/medium/large (25/50/75)
- Sexual: Two parents, gene crossover
- Fatigue: High speed costs extra energy
- Flee: Small flee from predators

Creature genes (0-1): speed, size, senseRange, aggression
Derived traits: speed 1-4, size 5-15, senseRange 20-100
Energy: starts 100, decays based on genes, reproduce at 150

Genetic loop:
1. Update creatures (move toward food, flee predators)
2. Eat food (gain energy based on size)
3. Reproduce if energy > threshold
4. Apply mutations (rate 0.2, strength 0.15)
5. Remove dead (energy <= 0 or age >= MAX_AGE)
6. Repopulate if extinction