go-snake

command module
v0.0.0-...-def37d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 4 Imported by: 0

README

Go snake!

This is just a small project I made in an afternoon just to write something in Golang, a great language that I love! It's a simple snake game that uses the termbox-go library to build the user interface and so the game itself.

I implemented some cool options to like the speed selection and the "pacman effect" (that allows you to go through walls and end up on the other side, not related to any flat earth conspiracy).

Play

In order to play the game you'll need to build it first.
These are the steps you have to follow:

  • Install go if you don't have it on your system already
  • Open a terminal
  • Go into the go-snake directory
  • Run this command
go build -ldflags="-s -w" -o snake main.go
  • This will create a snake binary that you can execute by running ./snake

Have fun!

If you are a master gopher and you notice some mistake or you just want to give me some coding advice, feel free to create an issue! I'm always happy to learn something!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL