{"id":27067388,"url":"https://github.com/maxboro/hunter-killer","last_synced_at":"2025-07-25T18:41:51.892Z","repository":{"id":270246573,"uuid":"594341658","full_name":"maxboro/hunter-killer","owner":"maxboro","description":"Simulation of prey and hunter","archived":false,"fork":false,"pushed_at":"2025-01-17T19:49:40.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T22:43:33.426Z","etag":null,"topics":["agent-based-modeling","agent-based-simulation","object-oriented-programming","python","simulation","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Python","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/maxboro.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,"zenodo":null}},"created_at":"2023-01-28T08:36:06.000Z","updated_at":"2025-01-25T08:50:46.000Z","dependencies_parsed_at":"2024-12-29T18:18:15.508Z","dependency_job_id":"1af34f1e-8415-450e-8747-7a8b9643fe28","html_url":"https://github.com/maxboro/hunter-killer","commit_stats":null,"previous_names":["maxboro/hunter-killer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maxboro/hunter-killer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxboro%2Fhunter-killer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxboro%2Fhunter-killer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxboro%2Fhunter-killer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxboro%2Fhunter-killer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxboro","download_url":"https://codeload.github.com/maxboro/hunter-killer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxboro%2Fhunter-killer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267046762,"owners_count":24026906,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-modeling","agent-based-simulation","object-oriented-programming","python","simulation","unit-testing"],"created_at":"2025-04-05T19:48:43.717Z","updated_at":"2025-07-25T18:41:51.839Z","avatar_url":"https://github.com/maxboro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nSimulation of one hunter and one or multiple prey. This project has [C++ version](https://github.com/maxboro/hunter-killer-cpp).\nThe hunter and the prey move randomly to a nearby cell or pass their turn. The hunter kills the prey if they are in the same cell.\n\n# Session examples\n\n## Session example (wo full grid display)\n\n```terminal\nSimulation parameters: {'n_prey': 5, 'n_steps': 5, 'grid_size_x': 3, 'grid_size_y': 3, 'show_grid': False}\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 1]. Is alive.\nPrey_3 at [1, 1]. Is alive.\nPrey_4 at [2, 1]. Is alive.\nHunter at [0, 0]\n----------------------------\nPrey_2 is killed.\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 0]. Is dead\nPrey_3 at [1, 0]. Is alive.\nPrey_4 at [2, 1]. Is alive.\nHunter at [0, 0]\n----------------------------\nPrey_1 is killed.\nPrey_2 is killed.\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 0]. Is dead\nPrey_2 at [0, 0]. Is dead\nPrey_3 at [1, 0]. Is alive.\nPrey_4 at [2, 1]. Is alive.\nHunter at [0, 0]\n----------------------------\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 0]. Is dead\nPrey_2 at [0, 0]. Is dead\nPrey_3 at [0, 0]. Is alive.\nPrey_4 at [1, 1]. Is alive.\nHunter at [1, 0]\n```\n\n## Session example (with full grid display)\n\n```terminal\nSimulation parameters: {'n_prey': 6, 'n_steps': 5, 'grid_size_x': 3, 'grid_size_y': 3, 'show_grid': True}\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 1]. Is alive.\nPrey_3 at [1, 1]. Is alive.\nPrey_4 at [2, 1]. Is alive.\nPrey_5 at [0, 0]. Is alive.\nHunter at [1, 0]\nP|H|\nP|P|P\nP| |\n----------------------------\nPrey_0 at [0, 1]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 1]. Is alive.\nPrey_3 at [1, 1]. Is alive.\nPrey_4 at [1, 1]. Is alive.\nPrey_5 at [0, 0]. Is alive.\nHunter at [1, 0]\nP|H|\nP|P|\n | |\n----------------------------\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 1]. Is alive.\nPrey_3 at [2, 1]. Is alive.\nPrey_4 at [1, 1]. Is alive.\nPrey_5 at [0, 0]. Is alive.\nHunter at [1, 0]\nP|H|\nP|P|P\nP| |\n----------------------------\nPrey_4 is killed.\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [0, 1]. Is alive.\nPrey_2 at [0, 1]. Is alive.\nPrey_3 at [2, 1]. Is alive.\nPrey_4 at [1, 1]. Is dead\nPrey_5 at [0, 0]. Is alive.\nHunter at [1, 1]\nP| |\nP|H|P\nP| |\n----------------------------\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [1, 1]. Is alive.\nPrey_2 at [0, 0]. Is alive.\nPrey_3 at [2, 1]. Is alive.\nPrey_4 at [1, 1]. Is dead\nPrey_5 at [0, 0]. Is alive.\nHunter at [1, 0]\nP|H|\n |X|P\nP| |\n----------------------------\nPrey_0 at [0, 2]. Is alive.\nPrey_1 at [1, 0]. Is alive.\nPrey_2 at [0, 0]. Is alive.\nPrey_3 at [2, 1]. Is alive.\nPrey_4 at [1, 1]. Is dead\nPrey_5 at [0, 1]. Is alive.\nHunter at [2, 0]\nP|P|H\nP|X|P\nP| |\n```\n\n# How to run\n\n## Simulation\n\n```bash\npython main.py\n```\n\n## Unit tests\n\n```bash\npython test_main.py\n```\n\n# Settings\n\nCan be changed in `settings.txt`.\n\n- n_prey (int: default 2) - Number of prey\n- n_steps (int: default 20) - Number of simulation steps\n- grid_size_x (int: default 5) - Grid size in X dimension\n- grid_size_y (int: default 5) - Grid size in Y dimension\n- show_grid (int: default 1) - Flag to show grid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxboro%2Fhunter-killer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxboro%2Fhunter-killer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxboro%2Fhunter-killer/lists"}