{"id":13440934,"url":"https://github.com/johnBuffer/AntSimulator","last_synced_at":"2025-03-20T10:33:07.655Z","repository":{"id":37599916,"uuid":"259766919","full_name":"johnBuffer/AntSimulator","owner":"johnBuffer","description":"Simple Ants simulator","archived":false,"fork":false,"pushed_at":"2025-02-11T16:00:01.000Z","size":892,"stargazers_count":2265,"open_issues_count":27,"forks_count":282,"subscribers_count":57,"default_branch":"master","last_synced_at":"2025-02-11T17:23:15.073Z","etag":null,"topics":["2d","cpp","realtime","sfml","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnBuffer.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":"2020-04-28T22:35:08.000Z","updated_at":"2025-02-02T17:04:48.000Z","dependencies_parsed_at":"2025-02-11T17:22:18.736Z","dependency_job_id":"dd008ccf-b0ab-4b2f-a3a1-2dd315de2ab0","html_url":"https://github.com/johnBuffer/AntSimulator","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnBuffer%2FAntSimulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnBuffer%2FAntSimulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnBuffer%2FAntSimulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnBuffer%2FAntSimulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnBuffer","download_url":"https://codeload.github.com/johnBuffer/AntSimulator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244595620,"owners_count":20478505,"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":["2d","cpp","realtime","sfml","simulation"],"created_at":"2024-07-31T03:01:28.048Z","updated_at":"2025-03-20T10:33:07.650Z","avatar_url":"https://github.com/johnBuffer.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# AntSimulator\n\nVery simple ants simulator.\n\n# Installation\n\n## Prerequisites\n\nIn order to compile this project you will need to:\n - have [SFML](https://www.sfml-dev.org/index.php) installed on your system. If you don't know how to do it see [this link](https://www.sfml-dev.org/tutorials/2.5/#getting-started).\n - have [CMake](https://cmake.org/) installed\n\n## Compilation\n\nDetailed explanation [here](https://preshing.com/20170511/how-to-build-a-cmake-based-project/)\n\n### On Linux with `install.sh`\n- Go in the repo folder\n\n`cd the/repo/location`\n\n- Execute `install.sh` script\n\n`./install.sh`\n\n##### On Ubuntu from Docker\n - Install Docker (see [this](https://docs.docker.com/engine/install/))\n - Execute `install_from_docker.sh` script\n```sh\ndocker build -t myimages/ant-simulator:latest .\ndocker create -it --name dummy myimages/ant-simulator:latest bash\ndocker cp dummy:/AntSimulator/build/AntSimulator .\nrm -rf build/\nmkdir build/\nmv AntSimulator build/\ncp -r res/ build/\ndocker rm -f dummy\n```\nExecutable files will be located in the build folder.\n\n### On Windows with CMake GUI and Visual Studio\n - Install the right SFML version or compile it (see [this](https://www.sfml-dev.org/tutorials/2.5/start-vc.php))\n - Run CMake\n - Select the repo location\n \n![Cmake 1](https://github.com/johnBuffer/AntSimulator/blob/master/img/cmake_1.PNG)\n - Click on `Configure`, if you have installed the `x64` version of SFML, in the pop up window select `x64` in the `Optionnal platform for generator` drop down\n\n![Cmake 2](https://github.com/johnBuffer/AntSimulator/blob/master/img/cmake_2.PNG)\n - Click on `Finish`\n - Click on `Generate`\n\n![Cmake 3](https://github.com/johnBuffer/AntSimulator/blob/master/img/cmake_3.PNG)\n - You can now open the generated project and build it.\n\n# Commands\n\n|Command|Action|\n|---|---|\n|**P**|Pause/Unpause the simulation|\n|**M**|Toggle markers drawing|\n|**A**|Toggle ants drawing|\n|**S**|Toggle max speed mode|\n|**W**|Toggle Wall mode|\n|**E**|Toggle Wall erase mode|\n|**Right click**|Add food|\n|**Left click**|Move view|\n|**Wheel**|Zoom|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjohnBuffer%2FAntSimulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FjohnBuffer%2FAntSimulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FjohnBuffer%2FAntSimulator/lists"}