Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple implementation of Richard Dawkins' "weasel" program
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
weasel.lsp

README.md

weasel

An implementation of Richard Dawkins' weasel program. The idea is to use a simple genetic algorithm to evolve an arbitrary phrase. The default is "METHINKS IT IS LIKE A WEASEL," from Hamlet.

I wrote this backstage during a theater performance. I forgot a line but my code came out okay.

Usage

The code was written for clisp. It was my first ever lisp program so I did not bother making it into a standalone executable. Load the code in clisp and type

  • (evolve "ARBITRARY STRING OF UPPERCASE AND SPACES") or
  • (evolve weasel) to trigger the default.

License

The code is licensed under the WTFPL. Do whatever the fuck you want with it.

Something went wrong with that request. Please try again.