# Go Tetris Golang Tetris for console window with optional AI ## 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 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 ![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/screenshot1.png "Go Tetris") ![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/screenshot2.png "Golang Tetris") ![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/screenshot3.png "Golang Tetris Heart") ![alt text](https://raw.githubusercontent.com/MichaelS11/tetris/master/screenshots/screenshot4.png "Tetris High Scores") ## To do * Improve AI speed (slow on large boards)