GeneticTS / docsProject documentation

Reference

Implementation Shape

Look up syntax, contracts, layouts, algorithms, and exact behavior.

The implementation keeps the genetic algorithm in a pure simulation module and the visual playback in the React page. The evolution loop can be tested without running animation timing, drag handlers, or SVG playback.

A deterministic Mulberry32 random source is used per seed and generation. A generation can be reproduced exactly, while rerolling the seed or changing the environment still creates a genuinely new run.

  • simulation.ts owns genomes, population state, target bounds, evaluation, breeding, and reconfiguration.
  • GeneticTsPage.tsx owns controls, SVG rendering, path playback, dragging, and replay timing.
  • Matter.js provides collision, gravity, walls, restitution, and ball motion.
  • The browser route embeds the simulation as a first-class interactive system.