Game/Battlesnake Info pages - Display "version" tag from /info #175
Replies: 4 comments 4 replies
-
A "nice to have" extension of this feature would be a breakdown of game stats grouped by version, so all the hard work would be done and we could get information like
|
Beta Was this translation helpful? Give feedback.
-
Huh, this is neat. Might be easy too, do you mean the version tag available here? |
Beta Was this translation helpful? Give feedback.
-
Ah, I didn't realize that existed! I was using what I had seen from a starter project which didn't define that. So I guess what I need is an easy way to see that in the views that I look to track snake progress. Places like the snake info page and the play.battlesnake.game/g/{gameId} page. |
Beta Was this translation helpful? Give feedback.
-
I like the idea of having this saved per game; I'd prefer version be free-form, so folks can use semver if they want, but things like git hashes remain valid. Rather than having the server poll /info more often, the server could just accept the same info payload in response to the /start call. If returning anything in response to /start remains optional, nothing breaks on the snakes side. (Obviously I have no idea if that's a trivial thing to plumb in on the server side, or would require massive refactoring efforts.) |
Beta Was this translation helpful? Give feedback.
-
I haven't completely thought through this, and I'm open to discussion, but it would be nice to save just a little more information to a snake.
When a game is played from the battlesnake engine, it saves a copy of the snake's info meaning when you go back it has the old color/name of the snake. Rather than update the color or customizations of the snake to distinguish versions of snakes, it would be nice to have an extra field to let the developer know what version of the snake ran the game.
I propose that the /info method include a
version
field that followed SEMVER conventions. Then in the board repo, have it included as alt-text or something. In the snake's Recent Matches, include in subscript the version passed to the game engine.I believe that the battlesnake server is currently being a little lazy and only updating the /info data every 24 hours or something, so this might also need to be updated to happen at the beginning of every game.
Beta Was this translation helpful? Give feedback.
All reactions