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.
go build -o bin/gosnake main.go
or
task build
./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 to install gosnake to your computer (macOs/linux)
$ ./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)
./bin/gosnake