All Projects → tiehuis → 2048 Cli

tiehuis / 2048 Cli

Licence: mit
The game 2048 for your Linux terminal (https://github.com/gabrielecirulli/2048)

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to 2048 Cli

Mandown
man-page inspired Markdown viewer
Stars: ✭ 173 (-1.7%)
Mutual labels:  terminal, ncurses
Tvision
A modern port of Turbo Vision 2.0, the classical framework for text-based user interfaces. Now cross-platform and with Unicode support.
Stars: ✭ 612 (+247.73%)
Mutual labels:  terminal, ncurses
Termox
C++17 Terminal User Interface(TUI) Library.
Stars: ✭ 306 (+73.86%)
Mutual labels:  terminal, ncurses
Goaccess
GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
Stars: ✭ 14,096 (+7909.09%)
Mutual labels:  terminal, ncurses
Nnn
n³ The unorthodox terminal file manager
Stars: ✭ 13,138 (+7364.77%)
Mutual labels:  terminal, ncurses
Sc Im
sc-im - Spreadsheet Calculator Improvised -- An ncurses spreadsheet program for terminal
Stars: ✭ 3,081 (+1650.57%)
Mutual labels:  terminal, ncurses
Sngrep
Ncurses SIP Messages flow viewer
Stars: ✭ 605 (+243.75%)
Mutual labels:  terminal, ncurses
Cursive
A Text User Interface library for the Rust programming language
Stars: ✭ 2,613 (+1384.66%)
Mutual labels:  terminal, ncurses
Dte
A small, configurable console text editor (moved to https://gitlab.com/craigbarnes/dte)
Stars: ✭ 98 (-44.32%)
Mutual labels:  terminal, ncurses
Turbo
An experimental text editor based on Scintilla and Turbo Vision.
Stars: ✭ 78 (-55.68%)
Mutual labels:  terminal, ncurses
Twterm
A full-featured TUI Twitter client
Stars: ✭ 186 (+5.68%)
Mutual labels:  terminal, ncurses
Programmer Calculator
Terminal calculator made for programmers working with multiple number representations, sizes, and overall close to the bits
Stars: ✭ 135 (-23.3%)
Mutual labels:  terminal, ncurses
Cfiles
A ncurses file manager written in C with vim like keybindings
Stars: ✭ 319 (+81.25%)
Mutual labels:  terminal, ncurses
Rubiks cube
rubik's cube that runs in your terminal!
Stars: ✭ 73 (-58.52%)
Mutual labels:  terminal, ncurses
Neix
neix - a RSS/Atom feed reader for your terminal.
Stars: ✭ 128 (-27.27%)
Mutual labels:  terminal, ncurses
Tuicss
Text-based user interface CSS library
Stars: ✭ 167 (-5.11%)
Mutual labels:  terminal, ncurses
Slash
Slack terminal client.
Stars: ✭ 164 (-6.82%)
Mutual labels:  terminal
Fake Terminal Website
A fully customizable terminal-like website template
Stars: ✭ 174 (-1.14%)
Mutual labels:  terminal
Wtf
The personal information dashboard for your terminal
Stars: ✭ 12,973 (+7271.02%)
Mutual labels:  terminal
Treeify
Pretty-print a javascript object as a tree
Stars: ✭ 174 (-1.14%)
Mutual labels:  terminal

2048-cli

run on repl.it

A cli version/engine of the game 2048= for your Linux terminal.

Screenshot

There currently are 2 versions that can be run. This includes a straight-forward terminal based version and one using ncurses. To add a new graphical interface, simply create a .c file which implements all the functions in gfx.h and add a Makefile entry.

Get

git clone https://github.com/tiehuis/2048-cli.git
make

By default, termios.h is expected to be present for the standard terminal version, and a VT100 compatible terminal is being used. If a VT100 terminal is not available, simply alter the makefile and remove the '-DVT100' flag. Compiling with ncurses requires the development libraries for it.

On an ubuntu/debian machine for example, these can be obtained via

apt-get install libncurses5-dev

You can also also easily install this on el >= 5 (CentOS, RedHat Enterprise Linux, Scientific Linux, Oracle) and Fedora >= 19 using the package-manager:

sudo yum install 2048-cli[-nocurses]

For el you will need to have the EPEL-repository enabled.

Controls

hjkl and wasd  Default movement keys
q              Quit the current game

Options

-h             Print the program usage.
-H             Print the current highscore.
-C             Disable color support (default).
-c             Enable color support if supported.
-a             Enable animations (default).
-A             Disable animations.
-i             Enable ai without displaying game.
-I             Enable ai and display game.
-r             Reset highscore. Will prompt user.
-s SIZE        Set the size of the playing field.
-b RATE        Set the rate at which blocks spawn per turn.

License

This code is licensed under the MIT License.

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].