Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
GitHub Snakes SVG (github.com/platane)
205 points by keepamovin on Dec 22, 2023 | hide | past | favorite | 26 comments


The snake doesn’t get longer as it eats like in the game


Also the snake uses the area outside the grey raster. Unfortunately the "issues" feature is deactivated.


I guess that's not a bug but a feature, it has to do that to be able to handle some situations (e.g. a week where all days have more contributions than the "level" it's currently eating would block it from getting to the other side of the "playfield"). Still, there probably are some situations where it can't reach all the dots?


It looks like it prefers to eat cells in order but it can eat them out of order if going in order is impossible. I assume the timeline under the game is there to show how well it’s doing.


Those are the rules indeed.


Also sometimes it eats darker spots before all the lighter are gone. Not sure if this is something permitted by the solving algorithm description [1]

Anyway, fun experiment.

[1] https://github.com/Platane/snk/blob/main/packages/solver/REA...


Fork it.


It was the plan at some point. But it was a bit too hard to solve. (author here)


Is it a coincidence that the username is an anagram of "at plane"...?


CORS Error:

Access to fetch at 'https://snk-one.vercel.app/api/github-user-contribution/gith...' from origin 'https://platane.github.io' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.


yep it uses my github token to retrieve the calendar from the github api.

It seems like the traffic from HN eats my quota pretty fast!


It ate my commit!


Only likes Python commits


Isn't that cannibalism?


Python is not named after the snake (https://en.wikipedia.org/wiki/History_of_Python)


Ok, it's named after a show named after an (imaginary) person named after the snake.


But it has two snakes on its logo ;)


Whoa, I never realized that's what those were. I thought it was just a blue and yellow knot.


Needs a share button and the animation doesn't play on it's own (I have to drag the scroll bar). Pretty cool though!


Great job!


You could rewind it too.


Could be worked into a Santa delivering presents to houses :)


Hi, I am the author. Thanks for submitting!


Very creative project, easy to use, and a great read me. Please don't get discouraged by others' negative comments.


Love this!





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: