Skip to main content

A simple illustration of mutation aiding evolution

Project description

Evolve Words

Introduction

Many moons ago, back in 2008, while in a debate on an atheist-oriented phpBB site (as was the fashion back then), I ended up writing a couple of scripts, in ruby, to illustrate a point about how mutation and selection can, given enough time, result in something with the appearance of design.

The code was far from a mic-drop body of evidence (it wasn't meant to be), I think it did an okay job of showing how nothing more than just mutating something and selecting for the "fitter" options can get you somewhere meaningful given enough time.

No matter, either you get the illustration or you don't. That's not important.

Fast forward 15 years and I was thinking that a Textual version of the code might be fun.

Evolve Words

This is a version of selection2. Turns out it is fun!

Installation

If you want to play with this, the best method is going to be to install with pipx:

$ pipx install evolve-words

then simply run evolve-words.

Requirements

While this code should work fine on any operating system, it's really coded to work on a system that provides one of the two following files:

  • /usr/dict/words
  • /usr/share/dict/words

That does, of course, mean it's unlikely to work fine on Windows given neither of them will be there. At some point in the very near future I'll add support for loading words from a file whose name is passed on the command line, or something similar.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

evolve-words-0.2.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

evolve_words-0.2.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file evolve-words-0.2.0.tar.gz.

File metadata

  • Download URL: evolve-words-0.2.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for evolve-words-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9b1ff66aaa713c94a52d3d1ccab669f915adbecf521e1b42923903bc79555b88
MD5 b2c645443ba670d5ff4be63a0a09d67f
BLAKE2b-256 1889402903c720d9f65a5fe32225502b1eae11fe6c3896ac4586446d4c894d94

See more details on using hashes here.

File details

Details for the file evolve_words-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: evolve_words-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for evolve_words-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 077443b6b65ceecee9dd55b1f653b292fc8fc5415f8c72f2fb2aaee61c6f7150
MD5 0ce1ddb9a41204d1794e1e31680b665e
BLAKE2b-256 1838dca0c4f1d3fbe777f6e59804a3e73d1f4b7b75d200be282510f034dc95ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page