{"id":24752670,"url":"https://github.com/adri326/single-rotation","last_synced_at":"2025-03-23T04:26:52.710Z","repository":{"id":109748910,"uuid":"358954911","full_name":"adri326/single-rotation","owner":"adri326","description":"Specialized Rust implementation of the \"Single Rotation\" reversible cellular automaton","archived":false,"fork":false,"pushed_at":"2021-04-20T20:09:55.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-28T10:51:37.371Z","etag":null,"topics":["simulation","singlerot"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adri326.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-04-17T18:34:54.000Z","updated_at":"2021-04-20T11:45:52.000Z","dependencies_parsed_at":"2023-04-21T15:08:47.997Z","dependency_job_id":null,"html_url":"https://github.com/adri326/single-rotation","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/adri326%2Fsingle-rotation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adri326%2Fsingle-rotation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adri326%2Fsingle-rotation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adri326%2Fsingle-rotation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adri326","download_url":"https://codeload.github.com/adri326/single-rotation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245055632,"owners_count":20553713,"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":["simulation","singlerot"],"created_at":"2025-01-28T10:50:45.453Z","updated_at":"2025-03-23T04:26:52.695Z","avatar_url":"https://github.com/adri326.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Single-rotation cellular automaton\n\nThis is a rust implementation of the [\"single rotation\" cellular automaton](http://dmishin.blogspot.com/2013/11/the-single-rotation-rule-remarkably.html).\n\n## Installation and usage\n\nFirst, clone and build this repository:\n\n```sh\ngit clone https://github.com/adri326/single-rotation\ncd single-rotation\ncargo build --release\n```\n\nThen, run it:\n\n```sh\n./target/release/single-rotation\n```\n\nIt will then listen for an [RLE-like](https://conwaylife.com/wiki/Run_Length_Encoded) formatted input string through the standard input (stdin).\nYou can type such a string yourself:\n\n```\nx = 0, y = 0\no$o2$o$o!\n```\n\nThen, hit enter and the simulation will begin.\n\nThe `x` and `y` parameters are optional and will default to `0`.\nThese are the parameters that are accepted:\n\n- `x`, sets the `X` coordinate of the top-left corner (unlike classical RLE, where the `x` argument corresponds to the width of the pattern, default `0`)\n- `y`, sets the `Y` coordinate of the top-left corner (unlike classical RLE, where the `y` argument corresponds to the height of the pattern, default `0`)\n- `s`, which sets the number of simulation step between frames (default `1`)\n- `i`, which sets the minimum time interval between frames, in milliseconds (default `100`)\n- `u`, the \"smoothing\" factor for the interpolation in the rendered view; a value of `4` will visually hide the 4-step oscillator nature of isolated cells (default `4`)\n\nAdditionally, the `c` tag allows you to change the color of the particle.\n\nWhen put together, it looks like this:\n\n```\nx = 0, y = 0, s = 41, i = 1000\n4bobo2$b2ob3o!\n```\n\nYou can also use shellscript notation to redirect stdin from a file:\n\n```sh\n./target/release/single-rotation \u003c examples/lightest-slow.rle\n```\n\nBy default, a CLI representation of the simulation will be displayed. You can switch to a window version instead by running it with the `-g` option:\n\n```sh\n./target/release/single-rotation -g \u003c examples/lightest-slow.rle\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadri326%2Fsingle-rotation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadri326%2Fsingle-rotation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadri326%2Fsingle-rotation/lists"}