modulepackage
0.0.0-20200814201350-083be15ba394
Repository: https://github.com/mattkelly/snake-go.git
Documentation: pkg.go.dev
# README
Snake
Play snake in your terminal. Built using Termloop.

Instructions
- Get it:
go get -u github.com/mattkelly/snake-go
- Play it:
$GOPATH/bin/snake-go
Contributing
Please do.
- Overlay message box with score upon dying (don't just flash red)
- Implement game difficulty options: easy, normal, hard
- (Maybe) Dynamically size border based on e.g. terminal size, user input
- (Maybe) Implement "play again" option
# Functions
EndGame should be called when the game ends due to e.g.
IncreaseScore increases the score by the given amount and updates the score text.
NewBorder creates a Border with the given dimensions.
NewFood creates a new Food at a random position.
NewSnake creates a new Snake with a default length and position.