/snk

🟩⬜ Generates a snake game from a github user contributions graph and output a screen capture as gif

Primary LanguageTypeScript

snk

type definitions code style

Generates a snake game from a github user contributions grid

Pull a github user's contribution grid. Make it a snake Game, generate a snake path where the cells get eaten in an orderly fashion.

Generate a gif or svg image.

Available as github action. Automatically generate a new image at the end of the day. Which make for great github profile readme

Usage

github action

- uses: Platane/snk@master
  with:
    github_user_name: platane
    gif_out_path: dist/github-contribution-grid-snake.gif
    svg_out_path: dist/github-contribution-grid-snake.svg

example with cron job

interactive demo

platane.github.io/snk

local

npm install

npm run dev:demo

Implementation

solver algorithm