alanduda / snk

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

Home Page:https://platane.github.io/snk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://platane.github.io/snk


Languages

Language:TypeScript 99.5%Language:Dockerfile 0.3%Language:JavaScript 0.1%