{"id":25405144,"url":"https://github.com/akihiko47/rockpaperscissors_cellular-automata","last_synced_at":"2025-04-12T20:30:17.824Z","repository":{"id":199064696,"uuid":"702074451","full_name":"akihiko47/RockPaperScissors_Cellular-Automata","owner":"akihiko47","description":"A cell change colour when the number of neighbouring cells that beats it is above a threshold. 1 beats 2 / 2 beats 3 / 3 beats 1","archived":false,"fork":false,"pushed_at":"2023-10-08T13:04:23.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-16T04:31:41.525Z","etag":null,"topics":["algorithm","cellular-automata","generative-art","pygame","python","rock-paper-scissors"],"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/akihiko47.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}},"created_at":"2023-10-08T12:23:46.000Z","updated_at":"2023-10-08T13:17:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"156727a7-a92f-4b93-92e7-501bce9185d5","html_url":"https://github.com/akihiko47/RockPaperScissors_Cellular-Automata","commit_stats":null,"previous_names":["akihiko47/rockpaperscissors_cellular-automata"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihiko47%2FRockPaperScissors_Cellular-Automata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihiko47%2FRockPaperScissors_Cellular-Automata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihiko47%2FRockPaperScissors_Cellular-Automata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akihiko47%2FRockPaperScissors_Cellular-Automata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akihiko47","download_url":"https://codeload.github.com/akihiko47/RockPaperScissors_Cellular-Automata/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248629021,"owners_count":21136183,"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":["algorithm","cellular-automata","generative-art","pygame","python","rock-paper-scissors"],"created_at":"2025-02-16T04:30:26.440Z","updated_at":"2025-04-12T20:30:17.788Z","avatar_url":"https://github.com/akihiko47.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🧬 Rock Paper Scissors 🧬\r\n\r\n![alt text](https://github.com/akihiko47/RockPaperScissors_Cellular-Automata/blob/main/banner.jpg?raw=true)\r\n\r\nIn this simulation, every pixel is a cell. In the likes of John Conway's Game of Life, at each simulation step, every cell decides its next color based on its neighbors' colors. Unlike Conway's game, though, there are three states (or colors) instead of just \"dead\" or \"alive\". Here's where the rock paper scissors analogy comes into play. Whenever a cell of a certain category is confronted with another of a different category, it will either \"eat\" or be \"eaten\" by the other. The rules are:\r\n- C eats B\r\n- B eats A\r\n- A eats C\r\n\r\n## Settings ⚙️\r\n1. `matrix_size = 100` - size of cells field (n x n)\r\n2. `cube_size = 10` - size of one cell (in pixels)\r\n3. `rand = True` - add some randomization (makes game more organic)\r\n4. `rand_cof = 1` - how random is mode above\r\n5. `near_win_count = 2` - how many cells need to eat another cell\r\n\r\n## Controls 🎮\r\n1. draw - mouse\r\n2. change pen color - 1 / 2 / 3\r\n3. start - space\r\n4. color scheme - left arrow / right arrow\r\n5. intensity - up arrow / down arrow\r\n6. max FPS - minus / plus\r\n7. restart - escape\r\n\r\nYou can also find controls in `controls.txt`\r\n\r\n## Contributions\r\nContributions are welcomed! 👋\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakihiko47%2Frockpaperscissors_cellular-automata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakihiko47%2Frockpaperscissors_cellular-automata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakihiko47%2Frockpaperscissors_cellular-automata/lists"}