This is a simple snake game, written in go.
execute the following command in your terminal.
go get github.com/pxsa/snake
- w (up)
- s (down)
- a (left)
- d (right)
The default value for width
and height
is set to 10
, But you can change it manually to whatever you want.
const (
Width = 10
Height = 10
)