TUI and WASM tetris in go using tcell.
Can be used either in a terminal as a native app, or as a WASM app in a web browser.
- https://aaronriekenberg.github.io/go-tetris/
- Automatic deploy to github pages on every commit by github actions
- Usual
go
commands work:
go run github.com/aaronriekenberg/go-tetris@latest
go install github.com/aaronriekenberg/go-tetris@latest
- Clone this git repo, build with
go build
, rungo-tetris
- Escape, Q: quit (non-WASM only)
- R: restart
- Left Arrow: move piece left
- Right Arrow: move piece right
- Up Arrow: rotate piece
- Down Arrow: move piece down
- Space Bar: drop piece
- V: toggle showing version info
- Click above board: rotate piece
- Click below board: move piece down
- Double click below board: drop piece
- Click near left of board: move current piece left
- Click near right of board: move current pice right