/geneticAlgorithm-TS

An implementation of a Genetic Algorithm to the Infinite Monkey Theorem made in TypeScript

Primary LanguageTypeScriptMIT LicenseMIT

geneticAlgorithm-TS

An implementation of a Genetic Algorithm to the Infinite Monkey Theorem made in TypeScript

Infinite Monkey Theorem

The infinite monkey theorem states that a monkey hitting keys at random on a typewriter keyboard for an infinite amount of time will almost surely type any given text, such as the complete works of William Shakespeare.

More here

Documentation

I STRONGLY RECCOMEND YOU TO CHECK OUT THE EXPLAINATION. Especially if you don't have experience with the concept of Genetic Algorithms.

HERE

Requirements

  • TypeScript
  • Node.js

Run

Compile TypeScript code

tsc

Run the main.js script

npm run start