F# Genetic Algorithm — Defining Squirrel Genes

The application at the end of this article

Learning Objectives

Series Overview

Genetic Algorithm 101

A sample chromosome that foolheartedly runs towards the dog
Generation 2 keeps top performers, some of their offspring, and random chromosomes
An example of genetic Crossover
An example of mutation after crossover

Adding Genes and Chromosomes

Evaluating Tiles for Chromosomes

Simulating Chromosomes

Implementing the User Interface

Visualizing Squirrel Brains

Putting it All Together

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matt Eland

Matt Eland

I help people love writing code through writing, speaking, and teaching on Software Engineering & Data Science