{"id":22736958,"url":"https://github.com/emadb/game_of_life","last_synced_at":"2025-03-30T03:15:04.064Z","repository":{"id":227722901,"uuid":"772241859","full_name":"emadb/game_of_life","owner":"emadb","description":"Implementing the Game of live in Elixir...fully distributed!","archived":false,"fork":false,"pushed_at":"2024-04-09T06:31:24.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-05T05:29:30.687Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/emadb.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":"2024-03-14T20:05:14.000Z","updated_at":"2024-10-13T12:14:51.000Z","dependencies_parsed_at":"2025-02-05T05:28:23.159Z","dependency_job_id":"3a4cc67e-5e87-4dfd-a17d-3601ce10e8cb","html_url":"https://github.com/emadb/game_of_life","commit_stats":null,"previous_names":["emadb/game_of_life"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadb%2Fgame_of_life","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadb%2Fgame_of_life/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadb%2Fgame_of_life/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emadb%2Fgame_of_life/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emadb","download_url":"https://codeload.github.com/emadb/game_of_life/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246269933,"owners_count":20750321,"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":[],"created_at":"2024-12-10T22:08:38.512Z","updated_at":"2025-03-30T03:15:04.040Z","avatar_url":"https://github.com/emadb.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Golex\n\n## The rules\n\n1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.\n2. Any live cell with more than three live neighbours dies, as if by overcrowding.\n3. Any live cell with two or three live neighbours lives on to the next generation.\n4. Any dead cell with exactly three live neighbours becomes a live cell.\n\n## Run!\n\nYou can run the application using the command `iex -S mix` and using the functions in the module `Utils` to instruments the world.\n\n`Utils.create_world/1` create the cells (you can specify the number) and `Utils.tick/0` will tick the clock to the next generation. You can view the worls using `Utils.print` (be careful if the world is very big).\nThere are also a couple of function like `count` and `get_list` that are useful to inspect the live cells.\n\n#### List all cells\n\n```elixir\n:ets.tab2list(:\"keys_Elixir.Golex.CellRegistry\")\n```\n\n#### Specify which node to use\n\n```elixir\nHorde.DynamicSupervisor.start_link(__MODULE__, [strategy: :one_for_one, distribution_strategy: Golex.LocalNodeDistribution], name: __MODULE__)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femadb%2Fgame_of_life","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femadb%2Fgame_of_life","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femadb%2Fgame_of_life/lists"}