This is a simple text (and maybe GUI in the future)-based version of Tetris written in Go.
- Learn Go
- Implement something that is close to being Tetris with some personal flair
- Use the principles of MVC design to have multiple rendering options for the game. To start with, there will be a simple text debugging mode and then later there will be a fancier text mode and maybe a GUI.
- Have fun
- (And by "have fun" I mean I'm attempting to use reduce memory overhead by using compact data structures...so I can do some fancy bit twiddling).
Go v1.13 is required as it supports binary literals. See this issue on GitHub for more info.
Go lacks a lot of old-school terminal control abilities (clear
, getch()
,
etc) so this project uses a 3rd party, cross platform library used by a number
of other text-based Go games, tcell.
make depend
go get "github.com/gdamore/tcell"
make
./bin/gotris [render mode]
Where [render mode]
is one of these options: