{"id":16125569,"url":"https://github.com/semibran/life","last_synced_at":"2025-04-06T13:12:46.572Z","repository":{"id":130492053,"uuid":"78476401","full_name":"semibran/life","owner":"semibran","description":":gear: conway's game of life","archived":false,"fork":false,"pushed_at":"2018-02-10T22:50:53.000Z","size":88,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-27T07:33:48.946Z","etag":null,"topics":["cellular-automata","game","game-of-life","physics","simulation"],"latest_commit_sha":null,"homepage":"https://semibran.github.io/life/","language":"JavaScript","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/semibran.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}},"created_at":"2017-01-09T22:48:21.000Z","updated_at":"2022-07-24T14:45:04.000Z","dependencies_parsed_at":"2023-08-01T09:16:05.726Z","dependency_job_id":null,"html_url":"https://github.com/semibran/life","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.0357142857142857,"last_synced_commit":"e456800101e56c1788c6e76e203bbe271d074291"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Flife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Flife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Flife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/semibran%2Flife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/semibran","download_url":"https://codeload.github.com/semibran/life/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247485291,"owners_count":20946398,"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":["cellular-automata","game","game-of-life","physics","simulation"],"created_at":"2024-10-09T21:30:00.942Z","updated_at":"2025-04-06T13:12:46.552Z","avatar_url":"https://github.com/semibran.png","language":"JavaScript","readme":"# life\n\n![conway's game of life](life.png)\n\u003e [View the demo][demo]\n\nAny [cellular automaton] with rules [similar to][life-like] [Conway's Game of Life] can be modeled using a data structure similar to the following:\n```js\nlet world = {\n  time: 0\n  rule: { birth: [ 3 ], survival: [ 2, 3 ] }\n  size: [ 256, 256 ]\n  data: new Uint8ClampedArray(256 * 256)\n    .fill()\n    .map(_ =\u003e Math.random() \u003c 0.25)\n}\n```\nThe update function found in `lib/update.js` efficiently advances the given `world` by a single unit of time. Altering the rule, size, and seed of the above structure would enable you to simulate any cellular automaton with Life-like mechanics.\n\n## license\n[MIT][MIT license] © [Brandon Semilla][github]\n\n[demo]:                  https://semibran.github.io/life/\n[life-like]:             https://en.wikipedia.org/wiki/Life-like_cellular_automaton\n[cellular automaton]:    https://en.wikipedia.org/wiki/Cellular_automaton\n[conway's game of life]: https://en.wikipedia.org/wiki/Conway's_Game_of_Life\n[MIT license]:           https://opensource.org/licenses/MIT\n[github]:                https://github.com/semibran\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Flife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsemibran%2Flife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsemibran%2Flife/lists"}