Play Tetris from the comfort of your terminal!
For Apple computers with ARM chips you can use the provided installer. For any other OS you'll have to compile the binary yourself.
Open the terminal and run:
curl -sSL https://raw.githubusercontent.com/alwedo/tetris/main/bin/install.sh | bash- You'll be required to enter your admin password.
- You might be required to allow the program to run in the System Settings - Privavacy & Security tab.
- Install Go
- Clone the repo
git clone git@github.com:alwedo/tetris.git - CD into the repo
cd tetris - Run the program
make run-tetris
Yes, Terminal Tetris allows you to battle your way out against another person! Every time you complete a line, the opponent's speed will increase by one level, creating a fast-paced multiplayer experience.
Tetris server is a minimalistic server implementation that uses gRPC bidirectional streaming to allow clients to play tetris against each other.
tetris -address="52.50.114.171" -name="your_name"You can either run the server in your local host:
make run-serverOr you can run it inside of a container:
make docker-buildThe server will listen to TCP connections over the port 9000. How to expose the port for others to join you locally is beyond the scope of this document. However you can look at tools like ngrok.
Disables Ghost piece.
tetris -noghostEnables debug logs into ~/.tetrisLog.
tetris -debugPrints current version.
tetris -versionSets player's name for Online mode.
tetris -name="YOUR_NAME"Sets the server address for Online mode.
tetris -address="YOUR_SERVER_ADDRESS"