2017-03-27 15:07:29 -05:00
|
|
|
# Go Tetris
|
|
|
|
|
2017-07-01 17:36:05 -05:00
|
|
|
Golang Tetris with optional AI for console window
|
2017-03-27 15:07:29 -05:00
|
|
|
|
|
|
|
|
|
|
|
## Compile
|
|
|
|
|
|
|
|
go get github.com/MichaelS11/tetris
|
|
|
|
|
|
|
|
go install github.com/MichaelS11/tetris
|
|
|
|
|
|
|
|
|
|
|
|
## Play
|
|
|
|
|
|
|
|
Then run the binary created, tetris or tetris.exe
|
|
|
|
|
|
|
|
|
|
|
|
## Keys
|
|
|
|
|
|
|
|
| Key | Action |
|
|
|
|
| --- | --- |
|
|
|
|
| ← | left move |
|
|
|
|
| z | left rotate |
|
|
|
|
| x | right rotate |
|
|
|
|
| → | right move |
|
|
|
|
| ↓ | soft drop |
|
|
|
|
| ↑ | hard drop |
|
|
|
|
| spacebar | hard drop |
|
|
|
|
| p | pause |
|
|
|
|
| q | quit |
|
|
|
|
|
|
|
|
|
|
|
|
## Features include
|
|
|
|
|
|
|
|
- AI (use i key to toggle)
|
|
|
|
- Lock delay
|
|
|
|
- Next piece
|
|
|
|
- Ghost piece
|
|
|
|
- Top scores
|
|
|
|
|
|
|
|
|
|
|
|
## 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 "Tetris Top Scores")
|