Readit News logoReadit News
ecuaflo · 2 years ago
The snake doesn’t get longer as it eats like in the game
micw · 2 years ago
Also the snake uses the area outside the grey raster. Unfortunately the "issues" feature is deactivated.
rob74 · 2 years ago
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?
darkwater · 2 years ago
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...

fmbb · 2 years ago
Fork it.

Deleted Comment

platane · 2 years ago
It was the plan at some point. But it was a bit too hard to solve. (author here)
low_tech_love · 2 years ago
Is it a coincidence that the username is an anagram of "at plane"...?
1231232131231 · 2 years ago
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.

platane · 2 years ago
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!

Dead Comment

mynameisnoone · 2 years ago
It ate my commit!
quickthrower2 · 2 years ago
Only likes Python commits
Hamuko · 2 years ago
Isn't that cannibalism?

Deleted Comment

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

Deleted Comment

awill88 · 2 years ago
Great job!
geordee · 2 years ago
You could rewind it too.