An open API service indexing awesome lists of open source software.

https://github.com/streamdp/gosnake

Another one version of the classic snake game written in golang with a library tcell.
https://github.com/streamdp/gosnake

gitflow-workflow golang goreleaser tcell

Last synced: 4 months ago
JSON representation

Another one version of the classic snake game written in golang with a library tcell.

Awesome Lists containing this project

README

          


gosnake




GitHub release


Code Status


Another one version of the classic snake game written in golang with a library tcell. This is a test task for the position Golang developer.

# Build the app

```bash
go build -o bin/gosnake main.go
```

or

```bash
task build
```

# Run the app

```bash
./bin/gosnake
```

or

```
task run
```
If you want to run the game from *Windows*, double-click on __*gosnake.exe*__ (you must use version of __*gosnake.exe*__ for the *Windows* architecture from the released binaries). For *macOS*, use the __*"open with terminal"*__ context menu on __*gosnake*__ and confirm launch with the __*"open"*__ button (you have to use version of __*gosnake*__ for the *Darwin* architecture from the released binaries).

You can use [brew](https://brew.sh/) to install **gosnake** to your [computer](https://github.com/streamdp/homebrew-games) (macOs/linux)

# App builtin help

```bash
$ ./gosnake -h
gosnake is a version of the classic snake game written in golang with a library tcell.

Usage of ./gosnake:
-h display help
-heigth int
set heigth of the game desk (default 20)
-limit int
set heigth of the game desk (default 10)
-width int
set width of the game desk (default 70)
```

# Test the app

```bash
./bin/gosnake
```