{"id":19976720,"url":"https://github.com/riiswa/colony-ant-simulator","last_synced_at":"2025-05-04T03:30:33.239Z","repository":{"id":36800171,"uuid":"166596310","full_name":"riiswa/colony-ant-simulator","owner":"riiswa","description":"Simulation of ants colony in python","archived":false,"fork":false,"pushed_at":"2023-08-29T06:46:43.000Z","size":302,"stargazers_count":62,"open_issues_count":2,"forks_count":13,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T02:43:05.379Z","etag":null,"topics":["ant","help-wanted","python","simulation","tkinter"],"latest_commit_sha":null,"homepage":null,"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/riiswa.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-19T21:39:08.000Z","updated_at":"2025-01-12T21:02:11.000Z","dependencies_parsed_at":"2024-11-13T03:26:40.446Z","dependency_job_id":"d7034f14-890b-4910-953f-1e8b5271ba76","html_url":"https://github.com/riiswa/colony-ant-simulator","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/riiswa%2Fcolony-ant-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riiswa%2Fcolony-ant-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riiswa%2Fcolony-ant-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riiswa%2Fcolony-ant-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riiswa","download_url":"https://codeload.github.com/riiswa/colony-ant-simulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252283524,"owners_count":21723488,"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":["ant","help-wanted","python","simulation","tkinter"],"created_at":"2024-11-13T03:25:21.435Z","updated_at":"2025-05-04T03:30:32.819Z","avatar_url":"https://github.com/riiswa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐜 Colony Ant Simulator\n\nThis is a program designed to simulate the behavior of ants using Python 3.\n\n## 📖 Overview\n\n- Simulation Modes: The program offers two simulation modes: \"theory\" and \"reality.\" In the \"reality\" mode, ants consume energy, and new ants are generated if there is enough food.\n\n- Movement and Energy: Ants move based on predefined movement patterns and have energy levels. Ants lose energy over time, and their movement is influenced by their energy.\n\n- Ant Behavior Simulation: The program simulates the behavior of ants in an environment, where ants move around randomly, search for food, and return to the nest.\n\n## 🐜 Explanation of the Ants' behaviour.\n\n- If the scout (also refered to as an ant) discovers a food source, it returns somewhat directly to the nest, leaving a trail of pheromones on it's way\n     - These pheromones attract other ants, causing them to follow the trail\n     - When ants return to the nest they reinforce the trail with more pheromones.\n\n- When two paths lead to the same food source, the shorter one is used by more scouts compared to the longer path.\n     - This causes the short path to become increasingly reinforced and attractive.\n     - Over time, the pheromones on the long path evaporate, causing it to disappear.\n     - Eventually, ants will only use the shortest path.\n\n## ⚙️ Running the Program, and Setting Parameters.\n\n\u003e **ⓘ Note**\\\n\u003e At the moment this program can't run, it seems that the current dependencies prevent the program from launching.\n\nTo Install the program, use the following command.\n```bash\ngit clone https://github.com/riiswa/colony-ant-simulator\ncd ~/colony-ant-simulator/\n\n```\nTo launch the program, use the following command. By default, the game starts in \"Theory\" mode, think of it as \"Arcade\" mode:\n\n```bash\npython3 colony_ant_simulator.py\n```\nYou can switch to \"Reality\" mode with the following command, think of \"Reality\" mode as \"Realism\" mode:\n\n```bash\npython3 colony_ant_simulator.py -m reality\n```\n\nFor help with the options use the -h flag:\n\n```bash\nusage: python3 colony_ant_simulator.py [-h] [-m [{theory,reality}]] [n_ants]\n\nSimulation of ants colony in python.\n\npositional arguments:\n  n_ants                Number of ants (recommended: 10-100; default: random number between 10 and 100)\n\noptions:\n  -h, --help            Show this help message and exit\n  -m [{theory,reality}] Simulation mode (default: \"theory\")\n```\n\n## 📸 Screenshots\n\nThe Algorithm in action:\n\n![Screenshot](assets/screenshot.gif)\n![Screenshot](assets/screenshot2.png)\n\n## 🛠️  Prerequisites\n\n- [Python 3.11](https://www.python.org/downloads/)\n- [Tkinter](https://tkdocs.com/tutorial/install.html)\n- Instal dependencies with `pip install -r requirements.txt`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friiswa%2Fcolony-ant-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friiswa%2Fcolony-ant-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friiswa%2Fcolony-ant-simulator/lists"}