go-tetris/README.md

62 lines
1.3 KiB
Markdown
Raw Normal View History

2017-03-27 15:07:29 -05:00
# Go Tetris
2018-05-23 15:47:48 -05:00
Golang Tetris for console window with optional AI
2017-03-27 15:07:29 -05:00
## Compile
2018-06-01 09:48:23 -05:00
```
go get github.com/MichaelS11/go-tetris
go install github.com/MichaelS11/go-tetris
```
2017-03-27 15:07:29 -05:00
## Play
Then run the binary created, tetris or tetris.exe
## Keys during game
2017-03-27 15:07:29 -05:00
| Key | Action |
| --- | --- |
| ← | left move |
| z | left rotate |
| x | right rotate |
| → | right move |
| ↓ | soft drop |
| ↑ | hard drop |
| spacebar | hard drop |
| p | pause |
| q | quit |
2017-08-30 12:03:50 -05:00
| i | toggle AI |
2017-03-27 15:07:29 -05:00
## Keys start screen
| Key | Action |
| --- | --- |
| ← | previous board |
| → | next board |
| spacebar | start game |
| q | quit |
2017-03-27 15:07:29 -05:00
## Features include
- AI (use i key to toggle)
- Lock delay
- Next piece
- Ghost piece
- Top scores
- Board choices
2017-03-27 15:07:29 -05:00
## 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)