{"id":13419608,"url":"https://github.com/avyfain/automata","last_synced_at":"2025-03-15T05:31:51.934Z","repository":{"id":77427028,"uuid":"79784422","full_name":"avyfain/automata","owner":"avyfain","description":"Companion repo for my blog post about Wolfram's elementary cellular automata","archived":false,"fork":false,"pushed_at":"2017-02-11T18:16:29.000Z","size":4,"stargazers_count":8,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-31T22:50:42.290Z","etag":null,"topics":["animation","automata","python","wolfram"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avyfain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2017-01-23T08:21:37.000Z","updated_at":"2020-06-04T02:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"d4048980-149c-4601-8cb1-0825cf97d715","html_url":"https://github.com/avyfain/automata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avyfain%2Fautomata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avyfain%2Fautomata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avyfain%2Fautomata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avyfain%2Fautomata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avyfain","download_url":"https://codeload.github.com/avyfain/automata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690111,"owners_count":20331726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","automata","python","wolfram"],"created_at":"2024-07-30T22:01:18.336Z","updated_at":"2025-03-15T05:31:51.664Z","avatar_url":"https://github.com/avyfain.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# automata\n\n![rule30](https://dl.dropboxusercontent.com/u/16238897/avyfain.io/seed-wolfram-small.gif \"Wolfram's Rule 30\")\n\nA companion repo for my [blog post](http://faingezicht.com/articles/2017/01/23/wolfram/) about Wolfram's elementary cellular automata.\n\nCurrently requires Python 3.x, and no other dependencies.\n\n## Usage\n\nTo run with the default arguments, just run:\n```bash\n$ python3 wolfram.py\nUsing rule 30\n                                      █\n                                     ███\n                                    ██  █\n                                   ██ ████\n                                  ██  █   █\n                                 ██ ████ ███\n                                ██  █    █  █\n                               ██ ████  ██████\n                              ██  █   ███     █\n                             ██ ████ ██  █   ███\n                            ██  █    █ ████ ██  █\n                           ██ ████  ██ █    █ ████\n                          ██  █   ███  ██  ██ █   █\n                         ██ ████ ██  ███ ███  ██ ███\n                        ██  █    █ ███   █  ███  █  █\n                       ██ ████  ██ █  █ █████  ███████\n                      ██  █   ███  ████ █    ███      █\n                     ██ ████ ██  ███    ██  ██  █    ███\n                    ██  █    █ ███  █  ██ ███ ████  ██  █\n                   ██ ████  ██ █  ██████  █   █   ███ ████\n                  ██  █   ███  ████     ████ ███ ██   █   █\n                 ██ ████ ██  ███   █   ██    █   █ █ ███ ███\n                ██  █    █ ███  █ ███ ██ █  ███ ██ █ █   █  █\n               ██ ████  ██ █  ███ █   █  ████   █  █ ██ ██████\n              ██  █   ███  ████   ██ █████   █ █████ █  █     █\n             ██ ████ ██  ███   █ ██  █    █ ██ █     █████   ███\n            ██  █    █ ███  █ ██ █ ████  ██ █  ██   ██    █ ██  █\n           ██ ████  ██ █  ███ █  █ █   ███  ████ █ ██ █  ██ █ ████\n          ██  █   ███  ████   ████ ██ ██  ███    █ █  ████  █ █   █\n         ██ ████ ██  ███   █ ██    █  █ ███  █  ██ ████   ███ ██ ███\n        ██  █    █ ███  █ ██ █ █  █████ █  ██████  █   █ ██   █  █  █\n       ██ ████  ██ █  ███ █  █ ████     ████     ████ ██ █ █ █████████\n      ██  █   ███  ████   ████ █   █   ██   █   ██    █  █ █ █        █\n     ██ ████ ██  ███   █ ██    ██ ███ ██ █ ███ ██ █  █████ █ ██      ███\n    ██  █    █ ███  █ ██ █ █  ██  █   █  █ █   █  ████     █ █ █    ██  █\n   ██ ████  ██ █  ███ █  █ ████ ████ █████ ██ █████   █   ██ █ ██  ██ ████\n  ██  █   ███  ████   ████ █    █    █     █  █    █ ███ ██  █ █ ███  █   █\n ██ ████ ██  ███   █ ██    ██  ███  ███   ██████  ██ █   █ ███ █ █  ████ ███\n██  █    █ ███  █ ██ █ █  ██ ███  ███  █ ██     ███  ██ ██ █   █ ████    █  █\n```\n\nTo get a random seed, use the `-r` flag:\n```bash\n$ python3 wolfram.py -r\nHere's a random initial state\nUsing rule 30\n█ ███    █████  █ █ ██  █ ██  ██ █ ███ █  ██    ██\n  █  █  ██    ███ █ █ ███ █ ███  █ █   ████ █  ██\n ████████ █  ██   █ █ █   █ █  ███ ██ ██    ████\n █        ████ █ ██ █ ██ ██ ████   █  █ █  ██   █\n ██      ██    █ █  █ █  █  █   █ █████ ████ █ ██\n █ █    ██ █  ██ ████ ████████ ██ █     █    █ █\n █ ██  ██  ████  █    █        █  ██   ███  ██ ██\n █ █ ███ ███   ████  ███      █████ █ ██  ███  █\n █ █ █   █  █ ██   ███  █    ██     █ █ ███  ████\n █ █ ██ █████ █ █ ██  ████  ██ █   ██ █ █  ███\n █ █ █  █     █ █ █ ███   ███  ██ ██  █ ████  █\n █ █ █████   ██ █ █ █  █ ██  ███  █ ███ █   ████\n █ █ █    █ ██  █ █ ████ █ ███  ███ █   ██ ██   █\n █ █ ██  ██ █ ███ █ █    █ █  ███   ██ ██  █ █ ██\n █ █ █ ███  █ █   █ ██  ██ ████  █ ██  █ ███ █ █\n █ █ █ █  ███ ██ ██ █ ███  █   ███ █ ███ █   █ ██\n █ █ █ ████   █  █  █ █  ████ ██   █ █   ██ ██ █\n █ █ █ █   █ ████████ ████    █ █ ██ ██ ██  █  ██\n █ █ █ ██ ██ █        █   █  ██ █ █  █  █ ██████\n █ █ █ █  █  ██      ███ █████  █ ███████ █     █\n █ █ █ ███████ █    ██   █    ███ █       ██   ██\n █ █ █ █       ██  ██ █ ███  ██   ██     ██ █ ██\n █ █ █ ██     ██ ███  █ █  ███ █ ██ █   ██  █ █ █\n █ █ █ █ █   ██  █  ███ ████   █ █  ██ ██ ███ █ █\n █ █ █ █ ██ ██ ██████   █   █ ██ ████  █  █   █ █\n █ █ █ █ █  █  █     █ ███ ██ █  █   ███████ ██ █\n █ █ █ █ ████████   ██ █   █  █████ ██       █  █\n █ █ █ █ █       █ ██  ██ █████     █ █     █████\n █ █ █ █ ██     ██ █ ███  █    █   ██ ██   ██\n █ █ █ █ █ █   ██  █ █  ████  ███ ██  █ █ ██ █\n █ █ █ █ █ ██ ██ ███ ████   ███   █ ███ █ █  ██\n █ █ █ █ █ █  █  █   █   █ ██  █ ██ █   █ ████ █\n █ █ █ █ █ ████████ ███ ██ █ ███ █  ██ ██ █    ██\n █ █ █ █ █ █        █   █  █ █   ████  █  ██  ██\n █ █ █ █ █ ██      ███ █████ ██ ██   ██████ ███ █\n █ █ █ █ █ █ █    ██   █     █  █ █ ██      █   █\n █ █ █ █ █ █ ██  ██ █ ███   █████ █ █ █    ███ ██\n █ █ █ █ █ █ █ ███  █ █  █ ██     █ █ ██  ██   █\n █ █ █ █ █ █ █ █  ███ ████ █ █   ██ █ █ ███ █ ███\n █ █ █ █ █ █ █ ████   █    █ ██ ██  █ █ █   █ █\n```\n\nTo pick a different rule, use the `--rule` argument:\n```bash\n$ python3 wolfram.py -r --rule 110\nHere's a random initial state\nUsing rule 110\n █ ██ ██   █ █ ██  █  █  █  ████████  ███   █ █ ██\n ███████  ███████ ██ ██ ██ ██      █ ██ █  ██████\n █     █ ██     █████████████     ███████ ██    █\n █    █████    ██           █    ██     ████   ██\n █   ██   █   ███          ██   ███    ██  █  ███\n █  ███  ██  ██ █         ███  ██ █   ███ ██ ██ █\n █ ██ █ ███ █████        ██ █ █████  ██ █████████\n ████████ ███   █       ███████   █ █████       █\n █      ███ █  ██      ██     █  ████   █      ██\n █     ██ ███ ███     ███    ██ ██  █  ██     ███\n █    █████ ███ █    ██ █   ██████ ██ ███    ██ █\n █   ██   ███ ███   █████  ██    ██████ █   █████\n █  ███  ██ ███ █  ██   █ ███   ██    ███  ██   █\n █ ██ █ █████ ███ ███  ████ █  ███   ██ █ ███  ██\n ████████   ███ ███ █ ██  ███ ██ █  ███████ █ ███\n █      █  ██ ███ ██████ ██ ██████ ██     █████ █\n █     ██ █████ ███    ██████    ████    ██   ███\n █    █████   ███ █   ██    █   ██  █   ███  ██ █\n █   ██   █  ██ ███  ███   ██  ███ ██  ██ █ █████\n █  ███  ██ █████ █ ██ █  ███ ██ ████ ███████   █\n █ ██ █ █████   ████████ ██ ██████  ███     █  ██\n ████████   █  ██      ██████    █ ██ █    ██ ███\n █      █  ██ ███     ██    █   ███████   █████ █\n █     ██ █████ █    ███   ██  ██     █  ██   ███\n █    █████   ███   ██ █  ███ ███    ██ ███  ██ █\n █   ██   █  ██ █  █████ ██ ███ █   █████ █ █████\n █  ███  ██ █████ ██   ██████ ███  ██   █████   █\n █ ██ █ █████   ████  ██    ███ █ ███  ██   █  ██\n ████████   █  ██  █ ███   ██ █████ █ ███  ██ ███\n █      █  ██ ███ ████ █  █████   █████ █ █████ █\n █     ██ █████ ███  ███ ██   █  ██   █████   ███\n █    █████   ███ █ ██ ████  ██ ███  ██   █  ██ █\n █   ██   █  ██ ████████  █ █████ █ ███  ██ █████\n █  ███  ██ █████      █ ████   █████ █ █████   █\n █ ██ █ █████   █     ████  █  ██   █████   █  ██\n ████████   █  ██    ██  █ ██ ███  ██   █  ██ ███\n █      █  ██ ███   ███ ███████ █ ███  ██ █████ █\n █     ██ █████ █  ██ ███     █████ █ █████   ███\n █    █████   ███ █████ █    ██   █████   █  ██ █\n █   ██   █  ██ ███   ███   ███  ██   █  ██ █████\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favyfain%2Fautomata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favyfain%2Fautomata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favyfain%2Fautomata/lists"}