Skip to content

Add qqqstuv/BattleSnake-2017 (Python 2.7, A* + Dijkstra) - #5

Open
byte-the-bot wants to merge 1 commit into
mainfrom
add-bs2017-qqqstuv
Open

Add qqqstuv/BattleSnake-2017 (Python 2.7, A* + Dijkstra)#5
byte-the-bot wants to merge 1 commit into
mainfrom
add-bs2017-qqqstuv

Conversation

@byte-the-bot

Copy link
Copy Markdown
Collaborator

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 doc
  • POST /start / POST /end200 {}
  • POST /move{move: "left", shout: "battlesnake-python!"} (legal v1 response)

Shim template: coreyja-studio/scratch:battlesnake-v0-port-template

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant