This snake game is a direct translation, from C to Go, of the Snake Game code from: Console Snake Game in C
If you are learning Golang, make sure to read this code and get the most out of it.
NOTE: This code has been tested in Linux operating system only. To be more precise, I only tested on Ubuntu Linux.
If you found a solution for a problem you figured out in this code, feel free to make a pull request.
Compilation and running:
$ go build main.go
$ ./snake
Control keys:
q - quit
a - left
s - down
w - up
d - right