Platane / snk

🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as animated svg or gif
https://platane.github.io/snk
4.34k stars 1.09k forks source link

Generated game doesn't seem to be correct #133

Open tails618 opened 2 weeks ago

tails618 commented 2 weeks ago

I might be misunderstanding something, but the graph that's generated in the gif doesn't seem to line up with my actual graph. Here's what's generated:

Screenshot 2024-10-09 at 10 21 30 PM

And here's my actual graph

Screenshot 2024-10-09 at 10 22 16 PM

The snake graph has a lot more green than my actual graph. Why is this?

caiofmbarbosa commented 1 week ago

i'm with the same problem

Platane commented 1 week ago

I think you changed the contribution setting image

I regenerated your snake animation and it reflect the setting change now: image

related #https://github.com/Platane/snk/issues/107

tails618 commented 1 week ago

I have both of those on - I'm not sure if that's correct but it doesn't seem to match no matter how they're set. The animation still seems to have far more contributions than real life, and doesn't match what you show in your screenshot of my animation:

image
TechnologyHell commented 1 week ago

AFAIK, it does depend on the contributions appearance settings. The private contributions is supposed to show up on the contributions graph if you set it to on. And if turned on, the workflow will try to access both - public + private contributions. By default, the workflow is supposed to count on the public contributions only.

Platane commented 1 week ago

@tails618 I just checked and you linked to my generated svg : https://github.com/tails618/tails618/blob/main/README.md?plain=1#L14-L16

yours is in your repository on that branch : https://github.com/tails618/tails618/blob/output/github-contribution-grid-snake.svg

and it's accessible at that url : https://raw.githubusercontent.com/tails618/tails618/output/github-contribution-grid-snake.svg