{"id":31771017,"url":"https://github.com/nerdinand/shooty-game","last_synced_at":"2026-05-18T03:03:05.376Z","repository":{"id":43717365,"uuid":"419022334","full_name":"nerdinand/shooty-game","owner":"nerdinand","description":"Game/Simulation which is a 2D-analog of Counter Strike as a target for Deep Reinforcement Learning.","archived":false,"fork":false,"pushed_at":"2022-08-31T13:20:34.000Z","size":629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-11T00:34:13.863Z","etag":null,"topics":["counter-strike","counter-strike-global-offensive","openai-gym-environment","reinforcement-learning","reinforcement-learning-environments","stable-baselines3"],"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/nerdinand.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}},"created_at":"2021-10-19T17:16:41.000Z","updated_at":"2022-02-27T23:12:15.000Z","dependencies_parsed_at":"2022-08-22T21:00:49.500Z","dependency_job_id":null,"html_url":"https://github.com/nerdinand/shooty-game","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/nerdinand/shooty-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdinand%2Fshooty-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdinand%2Fshooty-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdinand%2Fshooty-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdinand%2Fshooty-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerdinand","download_url":"https://codeload.github.com/nerdinand/shooty-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerdinand%2Fshooty-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002580,"owners_count":26083420,"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-10-10T02:00:06.843Z","response_time":62,"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":["counter-strike","counter-strike-global-offensive","openai-gym-environment","reinforcement-learning","reinforcement-learning-environments","stable-baselines3"],"created_at":"2025-10-10T03:18:40.034Z","updated_at":"2025-10-10T03:18:49.059Z","avatar_url":"https://github.com/nerdinand.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shooty-game\n[![Python](https://github.com/nerdinand/shooty-game/actions/workflows/python.yml/badge.svg)](https://github.com/nerdinand/shooty-game/actions/workflows/python.yml)\n\nGame/Simulation which is a 2D-analog of Counter Strike as a target for Deep Reinforcement Learning.\n\n## Setup\n\nThis uses [Poetry](https://python-poetry.org/) as a dependency manager. Python 3.10+ is supported. To install the dependencies just run:\n\n```shell\npip install poetry\npoetry install\n```\n\n## Usage\n\n```\nUsage: shooty.py [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n  --help  Show this message and exit.\n\nCommands:\n  gui\n  sim\n```\n\nshooty.py has 2 subcommands, `gui` and `sim`.\n\n```\nUsage: shooty.py gui [OPTIONS]\n\nOptions:\n  --with-human                    Run simulation with a human (controllable\n                                  with keyboard).\n  --bot-count INTEGER             How many bots to spawn.\n  --show-bots / --hide-bots       Show bots in GUI.\n  --show-map / --hide-map         Show map (obstacles) in GUI.\n  --show-visibility / --hide-visibility\n                                  Show visibility (FOV cone and visible\n                                  points) in GUI.\n  --help                          Show this message and exit.\n```\n\n```\nUsage: shooty.py sim [OPTIONS]\n\nOptions:\n  --bot-count INTEGER  How many bots to spawn.\n  --help               Show this message and exit.\n```\n\nIf run with UI activated, this is what you should see:\n\n![Screenshot of the Shooty GUI](doc/shooty-gui.png)\n\nYou can move the blue player with WASD, aim and shoot with the mouse, R is reload.\n\n## Development\n\nWe use a bunch of utilities to ensure code quality. Run them like this:\n\n```bash\nbin/all.sh\n```\n\n## To Do\n\n* [x] Write an adapter for [OpenAI Gym](https://gym.openai.com/) to test with a baseline RL algorithm\n* [x] Write more tests for simulation part\n* [x] Parallelise training\n* [ ] Distance visibility observation instead of absolute coordinates\n* [ ] Train a model that does something reasonable\n* [ ] Add own position, health and bullets to observation\n* [ ] Describe training and playback in README\n* [ ] Document ALL the things!\n\n## License\n\n__MIT License__\n\n```\nCopyright 2021 Ferdinand Niedermann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdinand%2Fshooty-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerdinand%2Fshooty-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerdinand%2Fshooty-game/lists"}