Genetic Algorithm and HTML5 Canvas
Inspired by the clever BoxCar 2d, I thought I'd have a bash at genetic alorithms. Not knowing Flash, I thought I'd try and implement it in an HTML5 canvas.
A number of chromosomes, represented by arrows, are fired from a fixed point. After they've landed, a fitness score (how far from the target each one is) is assigned to each one. Chromosomes are then selected randomly for breeding. Chromosomes with a higher fitness score have a better chance of being selected.
Each pair of chromosomes selected for breeding produces two children using a crossover function. After that, each child has a chance of being mutated to provide variation in the population.
Generation: 0, Best: 0m/s @ 0° (0)