Skip to content
Snake game made in Go! 🐍
Go
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
game added date to score save Oct 28, 2019
images
.gitignore added executable to files Oct 31, 2019
.travis.yml fixed accidental import loop in .yml Oct 15, 2019
HIGHSCORES.md added date to score save Oct 28, 2019
LICENSE
README.md added new link for golang weekly mention Nov 6, 2019
game.exe renamed exe file Oct 31, 2019
run.go

README.md

Snake Go Report Card Build Status

Logo
This is a Terminal based snake game made by tristangoossens. GitHub followers
Please star this repository to help my first big project grow! GitHub stars
Documentation can be found at https://github.com/tristangoossens/snake-go/tree/master/docs.

Try on repl.it

The game

Here is a GIF of the second version of the game! For version 1 click here.

GIF

Game settings

Here is a demo on how the game settings panel works. for more information on this click here.

GIF

Save score

IMPORTANT!
You need to clone the repository in order to use this function, for more information click here.

GIF

How to play

First of all you will need Go, you can find more information here.

When you have installed Go, you will need to install the game:

go get github.com/tristangoossens/snake-go

Then play it using the following command:

$GOPATH/bin/snake-go

Bucket list for future versions

  • Implementation of the skull mechanic
  • Implement game difficulty options: easy, normal, hard
  • Add a setting panel for a user to change the color of the snake, food and border
  • Implement a restart button / quit button on gameoverscreen
  • Add score to Gameover screen
  • Add instructions to the sidepanel
  • Let user adjust arena size and snake speed(flags?)
  • (could)Add function to check terminal size and adjust accordingly
  • (could)Make a local database to save highscores. (markdown file)
  • Add test files for all game files

Links

You can’t perform that action at this time.