https://github.com/woorui/snake
Game snake written in go. No third-dependance
https://github.com/woorui/snake
game go golang snake snake-game
Last synced: 8 months ago
JSON representation
Game snake written in go. No third-dependance
- Host: GitHub
- URL: https://github.com/woorui/snake
- Owner: woorui
- License: mit
- Created: 2019-05-31T01:43:24.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T13:24:48.000Z (over 3 years ago)
- Last Synced: 2025-04-06T21:24:51.855Z (about 1 year ago)
- Topics: game, go, golang, snake, snake-game
- Language: Go
- Homepage:
- Size: 279 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Game snake written in go, No third-dependence
[](https://cloud.drone.io/woorui/snake)
[](https://github.com/woorui/snake/actions/workflows/docker-publish.yml)
[](https://github.com/woorui/snake/actions/workflows/docker-image.yml)
[](https://codecov.io/gh/woorui/snake)
The snake is controlled with `w`, `a`, `s` and `d`, It don't support windows (but docker supported).
## Install
```bash
curl -fsSL "https://bina.egoist.dev/woorui/snake" | sh
```
or
```bash
go install github.com/woorui/snake
```
## Flags
```bash
> 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
```bash
snake
```

## Run with docker
see here: https://github.com/woorui/snake/pkgs/container/snake