{"id":19224269,"url":"https://github.com/aprowe/life-and-death-bot","last_synced_at":"2025-02-23T10:15:46.497Z","repository":{"id":84196641,"uuid":"131554197","full_name":"aprowe/life-and-death-bot","owner":"aprowe","description":"A Bot for Riddles.io","archived":false,"fork":false,"pushed_at":"2018-05-15T06:34:42.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T21:19:38.406Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/aprowe.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":"2018-04-30T04:05:03.000Z","updated_at":"2018-05-15T06:34:43.000Z","dependencies_parsed_at":"2023-05-23T22:15:23.125Z","dependency_job_id":null,"html_url":"https://github.com/aprowe/life-and-death-bot","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Flife-and-death-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Flife-and-death-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Flife-and-death-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aprowe%2Flife-and-death-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aprowe","download_url":"https://codeload.github.com/aprowe/life-and-death-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240298487,"owners_count":19779283,"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-11-09T15:11:08.862Z","updated_at":"2025-02-23T10:15:45.967Z","avatar_url":"https://github.com/aprowe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Life and Death Bot\n\n[Riddles.io API](https://docs.riddles.io/game-of-life-and-death/api)\n\n\n## To install\nThis project recommends using `pipenv`\n\nIn the project folder, simply run\n```\npipenv install\n```\n\n\n### Commands\n```\n./bin/run.sh\n./bin/test.sh\n./bin/benchmark.sh\n./bin/build.sh\n```\n##  TODO\n\n### Optimize and Benchmark\nNumpy needs to be utilized wherever possible to speed up everything\nA numpy method in place of a native python iterator over the board sped up\nthe function call by **1000%**\n\n### Prune getMoves to not count useless actions:\n\n#### Ignore 'kill' actions where it's neighbors neighbor count is less than 3.\n\nfor example, the one in the middle need not be explored to kill:\n\nBoard:\n```\n0 1 0 0 1\n0 0 0 0 0\n0 0 1 0 0\n1 0 0 0 1\n0 0 0 0 0\n```\n\nNeighbors:\n```\n1 0 1 1 0\n1 2 2 2 1\n1 2 0 2 1\n0 2 1 2 0\n1 1 0 1 1\n```\n\nSince the cell only neighbors cells with a 2 max, it can have no effect on the board.\n\nAnother Scenario:\nBoard:\n```\n0 0 0 0 0\n0 0 0 0 1\n0 0 1 0 0\n0 0 0 0 1\n0 0 0 0 0\n```\n\nNeighbors:\n```\n0 0 0 1 1\n0 1 1 2 0\n0 1 0 3 2\n0 1 1 2 0\n0 0 0 1 1\n```\n\nSince this cell has max 3 on it's surrounding neighbors, it must be considered to be killed or not\n\n#### Birth Optimizing\nLikewise, cells that have max neighbor count of 2 do not need to be considered to birth to.\nCells that are in these regions should be first picks for sacrificing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprowe%2Flife-and-death-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faprowe%2Flife-and-death-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faprowe%2Flife-and-death-bot/lists"}