{"id":18647716,"url":"https://github.com/nikorasu/pynants","last_synced_at":"2025-04-11T13:30:52.367Z","repository":{"id":45683813,"uuid":"361965459","full_name":"Nikorasu/PyNAnts","owner":"Nikorasu","description":"Ant Pheromone Trail Simulation","archived":false,"fork":false,"pushed_at":"2024-05-07T15:19:13.000Z","size":8105,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T14:21:35.721Z","etag":null,"topics":["agent-based-simulation","ant","ant-colony","ant-colony-optimization","ant-colony-simulation","ant-simulation","ants","emergent-behavior","foraging","numpy","pheromone","pheromones","pygame","pygame2","python","python3","simulation","swarm-intelligence","trails"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nikorasu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-27T03:13:36.000Z","updated_at":"2025-03-18T15:36:12.000Z","dependencies_parsed_at":"2024-11-07T06:29:16.623Z","dependency_job_id":"5f599e77-c6bf-4cc6-8c4d-c00487aa8c55","html_url":"https://github.com/Nikorasu/PyNAnts","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/Nikorasu%2FPyNAnts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikorasu%2FPyNAnts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikorasu%2FPyNAnts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nikorasu%2FPyNAnts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nikorasu","download_url":"https://codeload.github.com/Nikorasu/PyNAnts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248409775,"owners_count":21098769,"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":["agent-based-simulation","ant","ant-colony","ant-colony-optimization","ant-colony-simulation","ant-simulation","ants","emergent-behavior","foraging","numpy","pheromone","pheromones","pygame","pygame2","python","python3","simulation","swarm-intelligence","trails"],"created_at":"2024-11-07T06:27:37.590Z","updated_at":"2025-04-11T13:30:51.018Z","avatar_url":"https://github.com/Nikorasu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Preview](preview.gif \"Preview\")\n\n# PyNAnts\n\n### An Ant Simulation written in Python\n\nThis is an ant pheromone trail simulation, written in Python3,\nwith Pygame2 and Numpy.\n\n\n**To use** save the `nants.py` file somewhere, and run via python.\n(Example run command: `python3 nants.py`)\n\nLeft mouse click places food, right click removes food.\n\n`Esc` key to quit.\n\nI've included several tweakable settings near the top of the code. You can\nadjust window size, fullscreen, fps, and how many ants to spawn.\nThe pixel resolution ratio of the pheromone trail surface is also tweakable,\nalthough it alters how their pathfinding logic may work.\n\nToDo list of things that need improving/implementing:\n- Obstacle/wall avoidance, especially when heading home to nest.\n- Food particles don't pickup/remove yet when ants 'grab' them.\n\nIf you have any suggestions for how to improve these, please contact me!\n\nFor more information, and future updates,\n[see github page](https://github.com/Nikorasu/PyNAnts \"PyNAnts\").\n\nCurrently working on an alternative [array-based terminal version](https://github.com/Nikorasu/NantArray).\n\n---\n\n        This program is free software: you can redistribute it and/or modify\n        it under the terms of the GNU General Public License as published by\n        the Free Software Foundation.\n\n        This program is distributed in the hope that it will be useful,\n        but WITHOUT ANY WARRANTY; without even the implied warranty of\n        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n        GNU General Public License for more details.\n\n        You should have received a copy of the GNU General Public License\n        along with this program.\n        If not, see: https://www.gnu.org/licenses/gpl-3.0.html\n\n##### Copyright (c) 2021  Nikolaus Stromberg - nikorasu85@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikorasu%2Fpynants","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikorasu%2Fpynants","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikorasu%2Fpynants/lists"}