/snake

simple cli snake game in go

Primary LanguageGo

simple snake game in golang

This is a simple snake game, written in go.

Installation

execute the following command in your terminal.

go get github.com/pxsa/snake

setup

Direction

  • w (up)
  • s (down)
  • a (left)
  • d (right)

Scale

The default value for widthand height is set to 10, But you can change it manually to whatever you want.

const (
    Width = 10
    Height = 10
)

Output

trailer