command
module
Version:
v0.0.0-...-af71fea
Opens a new window with list of versions in this module.
Published: Mar 25, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
gotris
Tetris written in go
Can be play on terminal
How to
To run using golang:
go run main.go
To run using binary:
./gotris
To build binary:
make -f build.mk build
Controls:
# |
Key |
Action |
1 |
S |
Start |
2 |
Q |
Quit |
3 |
← |
Move left |
4 |
→ |
Move right |
5 |
↑ |
Rotate |
6 |
↓ |
Soft drop |
7 |
Space |
Hard drop |
Sceenshots

Logic
Rotate rule

TODOs:
- Welcome, gameover, leaderboard, screen
- Configurable size, speed
- Using WebAssembly to be playable on browsers
Documentation
¶
Copyright © 2023 tienvu461@gmail.com
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.