An open API service indexing awesome lists of open source software.

https://github.com/devemperor/2048-cli

The original 2048 version playable in the command line
https://github.com/devemperor/2048-cli

2048-game cli fun games python

Last synced: 10 months ago
JSON representation

The original 2048 version playable in the command line

Awesome Lists containing this project

README

          

[![asciicast](https://asciinema.org/a/462881.svg)](https://asciinema.org/a/462881)
# 2048-cli
![GitHub](https://img.shields.io/github/license/DevEmperor/2048-cli?style=for-the-badge) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/DevEmperor/2048-cli?style=for-the-badge)

**2048-cli is the first version of the original 2048 game that is playable from the command line on any operating system**

## Installation
1. Clone this git-repository
```bash
git clone https://github.com/DevEmperor/2048-cli.git
```
2. Install the dependencies (python libraries):
```bash
pip3 install -r requirements.txt
```
3. Run 2048-cli with `python3 2048-cli.py`

## How to play
Use your arrow keys to move the tiles. Tiles with the same number merge into one when they touch. Add them up to reach the highest number!
You can always undo your last move by pressing "u" or abort by pressing the "esc".

**IMPORTANT: Since 2048-cli uses the Pynput-library, it currently also reads keys that are sent to other applications. Due to this bug, you should always stay in your terminal whil playing, in order to prevent sending keystrokes by accident!**

## License
2048-cli is under the terms of the [Apapche 2.0 license](https://www.apache.org/licenses/LICENSE-2.0), following all clarifications stated in the [license file](https://raw.githubusercontent.com/DevEmperor/2048-cli/master/LICENSE)