{"id":13693276,"url":"https://github.com/joshhartmann11/BattleSnakeArena","last_synced_at":"2025-05-02T21:31:48.259Z","repository":{"id":174032248,"uuid":"134991183","full_name":"joshhartmann11/BattleSnakeArena","owner":"joshhartmann11","description":"A modified, terminal based, battle snake arena to bypass servers and have complete access to data.","archived":false,"fork":false,"pushed_at":"2023-12-29T19:05:39.000Z","size":136,"stargazers_count":6,"open_issues_count":5,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-12T19:41:10.849Z","etag":null,"topics":["battlesnake"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshhartmann11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-05-26T20:03:08.000Z","updated_at":"2024-03-27T00:02:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"ec80c1fa-486e-4a43-aa9b-c440e4bb95fa","html_url":"https://github.com/joshhartmann11/BattleSnakeArena","commit_stats":null,"previous_names":["joshhartmann11/battlesnakearena"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshhartmann11%2FBattleSnakeArena","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshhartmann11%2FBattleSnakeArena/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshhartmann11%2FBattleSnakeArena/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshhartmann11%2FBattleSnakeArena/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshhartmann11","download_url":"https://codeload.github.com/joshhartmann11/BattleSnakeArena/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252108860,"owners_count":21696150,"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":["battlesnake"],"created_at":"2024-08-02T17:01:07.868Z","updated_at":"2025-05-02T21:31:48.008Z","avatar_url":"https://github.com/joshhartmann11.png","language":"Python","funding_links":[],"categories":["Third-Party Tools"],"sub_categories":[],"readme":"# BattleSnakeArena\nA modified, terminal based, [Battle Snake](https://play.battlesnake.io/) arena to bypass servers and have complete control.\n\n## Requirements\n- Python3\n- A few packages for Python3 that you probably already have\n\n## Test Snakes\nThis repository comes with a few snakes for testing.\n\n### battleJake2019\nThis was my snake entered into Battle Snake 2019.\n\n### battleJake2018\nThis was my snake entered into Battle Snake 2018.\n\n### simpleJake\nA snake that only knows how to not hit walls and other snakes but has a good smell for food.\n\n### hungryJake\nA snake whos top priority is to \"get that brunch\".\n\n## Adding Your Own Snake\nAdding your own snake is simple! Your snake just needs to be written in python3.\n\n1. Make a quick modification to your snake in the \"move\" function. (Don't worry, it can still function as a server)\n```python3\ndef move(data=None):\n    if not data:\n        data = bottle.request.json\n```\n\n2. Add your snake to the snakes file (snakes.py)\n\nImport your file and make a dictionary in the SNAKES list to tell the arena about your snake.\n\n## Running A Game\nThere is a command line interface for running games through battleSnake.py. For help run:\n```\npython3 battlesnake.py -h\n```\n\n### Running A Single Game\n\"Run a game with the snakes battleJake2018 and battleJake2019\"\n```\npython3 battlesnake.py -s battleJake2018 battleJake2019\n```\n\n### Running Many Games Without Board Output\n\"Run 10 games without board output at 100% speed with battleJake2018, battleJake2019, simpleJake, and hungryJake\"\n```\npython3 battlesnake.py -g 10 -b -sp 100 -s battleJake2018 battleJake2019 simpleJake hungryJake\n```\n\n## Why?\n- Speed: Run 100s or 1000s of games, in parallel, to gather training data, assess your changes or test your snake\n- No Server: Take as long as you want to respond, save that $$$ on server costs\n- Debugging: See your console debugging realtime printed between game states, rerun games with the same seed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshhartmann11%2FBattleSnakeArena","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshhartmann11%2FBattleSnakeArena","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshhartmann11%2FBattleSnakeArena/lists"}