Home

Awesome

Go Tetris

Golang Tetris for console window with optional AI

Features include

Compile

go get github.com/MichaelS11/go-tetris
go install github.com/MichaelS11/go-tetris

Play

Then run the binary created, go-tetris or go-tetris.exe

Keys start screen

KeyAction
previous board
next board
spacebarstart game
ctrl eedit board
qquit

Keys during game

KeyAction
left move
right move
soft drop
hard drop
spacebarhard drop
zleft rotate
xright rotate
ppause
qquit
itoggle AI

Keys edit mode

KeyAction
move cursor left
move cursor right
move cursor down
move cursor up
zrotate left
xrotate right
ccyan block - I
bblue block - J
wwhite block - L
eyellow block - O
ggreen block - S
amagenta block - T
rred block - Z
ffree block
ctrl bchange board size
ctrl ssave board
ctrl nsave board as new
ctrl kdelete board
ctrl oempty board
ctrl qquit edit mode

Screenshots

alt text

alt text

alt text

alt text

To do