Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 492 Bytes

File metadata and controls

38 lines (23 loc) · 492 Bytes

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