Add qqqstuv/BattleSnake-2017 (Python 2.7, A* + Dijkstra) - #5
Open
byte-the-bot wants to merge 1 commit into
Open
Conversation
2017-era Python 2.7 Battlesnake by qqqstuv (5 stars). Uses A* + Dijkstra
pathfinding with a strategy heatmap.
Ported to v1 via byte-the-bot/BattleSnake-2017@master, which carries a
config-only patch — three files added (Dockerfile + stdlib Python 3
shim + supervisor script), no source modifications. The shim translates
v1 requests to the 2017 pre-world flat envelope and mirrors inbound
coordinates (Y_FLIP=1) so the strategy sees its native top-left frame.
End-to-end validated: GET / returns the v1 identity doc, /start /move
/end round-trip cleanly, /move returns a legal {move, shout} response.
byte-the-bot
force-pushed
the
add-bs2017-qqqstuv
branch
from
August 4, 2026 08:13
60d25ef to
ac49e07
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds qqqstuv/BattleSnake-2017 to the Snake Zoo — a 5⭐ 2017-era Python 2.7 Battlesnake with A* + Dijkstra pathfinding and a strategy heatmap.
Port
Original repo: qqqstuv/BattleSnake-2017 — speaks the 2017 pre-world flat envelope and uses top-left coordinate origin.
Ported via byte-the-bot/BattleSnake-2017@master, which carries a config-only patch — three files added (Dockerfile + stdlib Python 3 shim + supervisor script), no source modifications. The shim translates v1 requests to the 2017 pre-world shape and mirrors inbound coordinates (
Y_FLIP=1) so the strategy sees its native top-left frame.Validation
End-to-end against the running container (2026-05-11):
GET /→ v1 identity docPOST /start/POST /end→200 {}POST /move→{move: "left", shout: "battlesnake-python!"}(legal v1 response)Shim template: coreyja-studio/scratch:battlesnake-v0-port-template