e9ec8cd1dd
Improved AI slightly |
||
---|---|---|
screenshots | ||
vendor | ||
LICENSE | ||
README.md | ||
ai.go | ||
ai_test.go | ||
board.go | ||
boards.go | ||
boards_test.go | ||
engine.go | ||
globals.go | ||
keyInput.go | ||
mino.go | ||
mino_test.go | ||
minos.go | ||
ranking.go | ||
tetris.go | ||
view.go |
README.md
Go Tetris
Golang Tetris with optional AI for console window
Compile
go get github.com/MichaelS11/tetris
go install github.com/MichaelS11/tetris
Play
Then run the binary created, tetris or tetris.exe
Keys during game
Key | Action |
---|---|
← | left move |
z | left rotate |
x | right rotate |
→ | right move |
↓ | soft drop |
↑ | hard drop |
spacebar | hard drop |
p | pause |
q | quit |
i | toggle AI |
Keys start screen
Key | Action |
---|---|
← | previous board |
→ | next board |
spacebar | start game |
q | quit |
Features include
- AI (use i key to toggle)
- Lock delay
- Next piece
- Ghost piece
- Top scores
- Board choices
Screenshots
To do
- Improve AI speed (slow on large boards)