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.
- Host: GitHub
- URL: https://github.com/streamdp/gosnake
- Owner: streamdp
- License: mit
- Created: 2021-09-30T18:50:12.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T15:57:59.000Z (about 1 year ago)
- Last Synced: 2024-10-16T20:12:32.658Z (about 1 year ago)
- Topics: gitflow-workflow, golang, goreleaser, tcell
- Language: Go
- Homepage: https://github.com/streamdp/gosnake
- Size: 81.1 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
gosnake
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
```