Skip to content
/ snake Public

Game snake written in go. No third-dependance

License

Notifications You must be signed in to change notification settings

woorui/snake

Repository files navigation

Game snake written in go, No third-dependence

Build Status Docker Docker Image CI codecov

The snake is controlled with w, a, s and d, It don't support windows (but docker supported).

Install

curl -fsSL "https://bina.egoist.dev/woorui/snake" | sh

or

go install github.com/woorui/snake

Flags

> snake -h
Usage of snake:
  -height int
        game stage height (default 12)
  -speed int
        game speed, duration between two frames (default 120)
  -width int
        game stage width (default 25)

Run

snake

Show the running result

Run with docker

see here: https://github.com/woorui/snake/pkgs/container/snake