49 lines
921 B
Markdown
49 lines
921 B
Markdown
|
# Go Tetris
|
||
|
|
||
|
Golang Tetris for Linux shell or Windows Command Prompt
|
||
|
|
||
|
|
||
|
## 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
|
||
|
|
||
|

|
||
|
|
||
|

|
||
|
|
||
|

|