Skip to content

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

License

Notifications You must be signed in to change notification settings

streamdp/gosnake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

go build -o bin/gosnake main.go

or

task build

Run the app

./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)

App builtin help

$ ./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

./bin/gosnake                                                      

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages