All Projects → samtay → Tetris

samtay / Tetris

Licence: other
A terminal interface for Tetris

Programming Languages

haskell
3896 projects

Labels

Projects that are alternatives of or similar to Tetris

Kotcity
KotCity, an open source city simulator
Stars: ✭ 462 (-7.41%)
Mutual labels:  game
Etlegacy Deprecated
Archived repository. For current repo, see: https://github.com/etlegacy/etlegacy
Stars: ✭ 470 (-5.81%)
Mutual labels:  game
React Game Kit
Component library for making games with React & React Native
Stars: ✭ 4,480 (+797.8%)
Mutual labels:  game
Lasercrabs
Launch your LASERCRAB at walls, ceilings, and enemy heads in this indie multiplayer shooter where "move" and "attack" are synonymous.
Stars: ✭ 465 (-6.81%)
Mutual labels:  game
Fheroes2
Free implementation of Heroes of Might and Magic II game engine
Stars: ✭ 471 (-5.61%)
Mutual labels:  game
Gomuks
A terminal based Matrix client written in Go.
Stars: ✭ 471 (-5.61%)
Mutual labels:  tui
Dwarfcorp
An open-source 3D colony management game for PC, Mac and Linux
Stars: ✭ 460 (-7.82%)
Mutual labels:  game
Rtv
Browse Reddit from your terminal
Stars: ✭ 4,558 (+813.43%)
Mutual labels:  tui
Owapi
Overwatch JSON API
Stars: ✭ 470 (-5.81%)
Mutual labels:  game
Aerc
Asynchronous email client for your terminal
Stars: ✭ 483 (-3.21%)
Mutual labels:  tui
Hearthstone Deck Tracker
A deck tracker and deck manager for Hearthstone on Windows
Stars: ✭ 4,496 (+801%)
Mutual labels:  game
Lgame
A cross-platform Java game Engine (Framework) , support JavaFX / Android / IOS / HTML5 / Linux / MAC / Windows
Stars: ✭ 467 (-6.41%)
Mutual labels:  game
Fltrdr
A TUI text reader for the terminal.
Stars: ✭ 477 (-4.41%)
Mutual labels:  tui
Nintendo Switch Eshop
Crawler for Nintendo Switch eShop
Stars: ✭ 463 (-7.21%)
Mutual labels:  game
Consoleframework
Cross-platform toolkit for easy development of TUI applications.
Stars: ✭ 487 (-2.4%)
Mutual labels:  tui
Krkrz
Kirikiri Z Project
Stars: ✭ 460 (-7.82%)
Mutual labels:  game
Bubbles
TUI components for Bubble Tea 🍡
Stars: ✭ 467 (-6.41%)
Mutual labels:  tui
Cytoid
A community-driven touchscreen music game.
Stars: ✭ 493 (-1.2%)
Mutual labels:  game
Tickrs
Realtime ticker data in your terminal 📈
Stars: ✭ 491 (-1.6%)
Mutual labels:  tui
Naev
Naev is a 2d action/rpg space game that combines elements from the action, rpg and simulation genres.
Stars: ✭ 482 (-3.41%)
Mutual labels:  game

tetris Build Status

A terminal interface for Tetris

terminal-gif

installation

Installation on MacOS and Linux is outlined below. Windows support is questionable, but you can try to install from source.

MacOS

Installation on a Mac is simple with Homebrew:

brew install samtay/tui/tetris

Arch Linux

Arch Linux users can install from the AUR, e.g.

yay -S tetris-terminal-git # or yaourt, etc.

Snapcraft

Thanks to @thefenriswolf this is available on most Linux distributions via snapcraft:

sudo snap install tetris-thefenriswolf
alias tetris=/snap/bin/tetris-thefenriswolf.tetris # add to .bashrc or .zshrc etc.

install from source

First get stack. Then

git clone https://github.com/samtay/tetris.git
cd tetris
stack install tetris

usage

The default game is run by simply executing the tetris command. If the unicode characters look a bit wonky in your terminal, you can also run

tetris --ascii-only         # uses [] as preview cell
# or
tetris --preview-chars 'XX' # uses custom characters as preview cell

If you want to skip the level prompt, you can start the game immediately via

tetris --level n

Lastly, to see the current high score, you can run tetris --high-score. And of course, see tetris --help for help.

tips

troubleshooting

People seem to have varying levels of success with the linux binary. Please note that it is compiled dynamically and hence should not be expected to work on most distros. If you have other problems, feel free to open an issue.

roll your own

If you like games in your terminal and have an interest in functional programming, write your own! This code is built on top of brick which makes building terminal user interfaces very accessible. I also have a tutorial that can help you get started.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].