/robot-ga

An interactive genetic algorithm based on a finite state machine.

Primary LanguageJavaScript

Genetic Algorithm in Javascript

A genetic algorithm optimizes a robot's strategy to clean a littered room. This is based on an example genetic algorithm posed in Dr. Melanie Mitchell's Complexity: A Guided Tour.

Running

This is visible on my website, or you can run it locally:

  1. Clone the repository
  2. Install dependencies
npm install

Note: If you have a modern version of npm, this will automatically run the prepare task, which does a build. Otherwise you will need to run npm run build yourself.

  1. Run the server
npm start