{"id":13692545,"url":"https://github.com/coreyja/battlesnake-rs","last_synced_at":"2025-04-16T03:12:35.790Z","repository":{"id":39616779,"uuid":"340762202","full_name":"coreyja/battlesnake-rs","owner":"coreyja","description":"My personal Battlesnakes!","archived":false,"fork":false,"pushed_at":"2024-02-25T00:16:28.000Z","size":1446,"stargazers_count":11,"open_issues_count":5,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-07T15:23:01.391Z","etag":null,"topics":["battlesnake"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/coreyja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"coreyja","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2021-02-20T21:59:44.000Z","updated_at":"2024-09-18T02:10:47.000Z","dependencies_parsed_at":"2023-12-16T05:24:13.240Z","dependency_job_id":"168c69ce-2afe-4509-8ef4-048850e64852","html_url":"https://github.com/coreyja/battlesnake-rs","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/coreyja%2Fbattlesnake-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyja%2Fbattlesnake-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyja%2Fbattlesnake-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coreyja%2Fbattlesnake-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coreyja","download_url":"https://codeload.github.com/coreyja/battlesnake-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240367819,"owners_count":19790324,"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:00:59.319Z","updated_at":"2025-03-01T07:32:21.888Z","avatar_url":"https://github.com/coreyja.png","language":"Rust","funding_links":["https://github.com/sponsors/coreyja"],"categories":["Battlesnakes"],"sub_categories":[],"readme":"# battlesnake-rs\n\nThis project holds my Snakes which play on play.battlesnake.com!\n\n## Snakes\n\n### [Amphibious Arthur](https://play.battlesnake.com/u/coreyja/amphibious-arthur/)\n\nArthur was my first snake! He was originally built to be more sole play based, but adopted some\nmulti-player smarts eventually.\n\nHe is a hand-rolled tree-search based snake. He looks at his possible moves and scores them. The\nscoring function works by recursively looking a set number of moves ahead and summing all the\nscores. From these possible moves he picks the one with the highest score.\n\n### [Bombastic Bob](https://play.battlesnake.com/u/coreyja/bombastic-bob/)\n\nBob just goes in a random 'reasonable' direction each time. He won't dive into an existing snake or\noff the board, but is happy to run into a head to head.\n\n### [Constant Carter](https://play.battlesnake.com/u/coreyja/constant-carter/)\n\nCarter just goes right. Thats all. Mostly created to test latency between the Battlesnake Server\nand my snake server.\n\n### [Devious Devin](https://play.battlesnake.com/u/coreyja/devious-devin/)\n\nAKA: Business Snail\n\nDevin is my first minimax snake! Has a pretty highly tuned minimax implementation with an scoring\nalgorithm that is mostly based on the distance to either food or the closest opponents head.\n\nMy current best 'competitive' snake at the moment! Most recently he was invited and competed in the\n[Elite Division Winter Classic Invitational 2021](https://play.battlesnake.com/competitions/fall-league-2021/fall-league-2021-elite/brackets/)\n\n### [Eremetic Eric](https://play.battlesnake.com/u/coreyja/eremetic-eric/)\n\n#### Strategy\n\nEric is a single player snake. His goal is to survive as many turns as possible.\n\nTo do this he does a lot of tail chasing. The high level strategy goes something like the following:\n\n- Use A* to find the shortest path to our tail\n- Use this path to pretend the snake is a complete 'circle', IE: Change the board such that our snake contains all pieces from the A* search we just did\n- If our health is greater than the 'completed circle' snake length, keep circling until we are low on health\n- When we are low on health, look for the \"best\" food item, where best is defined as follows:\n  - We can get to this food with the lowest possible health, such that we prioritize using as much health as possible\n- Once we have gotten determined which food is best, we determine which body piece is where we should 'exit' our circle to grab the food. This is the body piece where A* finds the shortest distance to the chosen food.\n- If we are at this chosen body piece, follow the A* prime to the food\n- If we are NOT at this chosen body piece, keep looping until we are\n\nEric is open for games on play.battlesnake.com, so feel free to start a Solo game with him and watch what he does!\n\n### [Famished Frank](https://play.battlesnake.com/u/coreyja/famished-frank/)\n\nFrank is famished... He needs food! Once he's full he goes for the corners\n\nSuccessfully completed the [Occupy 4 Corners Challenge](https://play.battlesnake.com/g/ee518016-997d-4fdf-9354-a73105876174/)\n\n### [Gigantic George](https://play.battlesnake.com/u/coreyja/gigantic-george/)\n\nGeorge wants to get as long as possible\n\nSuccessfully completed the [Maximum Snake Challenge](https://play.battlesnake.com/g/136ef25f-27b3-4adc-86a8-d57eb3b11877/)\n\n### [Hovering Hobbs](https://play.battlesnake.com/u/coreyja/hovering-hobbs/)\n\nHobbs is an area control snake. They take the minimax implementation from Devin, and combines it\nwith a Flood Fill inspired algorithm to try and control more of the board than their opponents.\n\nHobbs is brand new, and excited to compete in the arenas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreyja%2Fbattlesnake-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoreyja%2Fbattlesnake-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoreyja%2Fbattlesnake-rs/lists"}