/snakego

🐍 Greedy snake game in Go, Project for Codelympics.

Primary LanguageGo

greedy snake game in Go

greedy snake game in Go

See video for demo.

Usage

go get github.com/towry/snakego
make
make run

Keys

Press Space to stop, press Space again to resume.

Use arrow key to control the direction of snake or accelerate speed.

TODO

  • add food collision detect
  • add ticker
  • add border collision detect
  • add body collision detect

(c) Towry Wang