Skip to content

The original 2048 version playable in the command line

License

Notifications You must be signed in to change notification settings

DevEmperor/2048-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

asciicast

2048-cli

GitHub GitHub release (latest by date)

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
    git clone https://github.com/DevEmperor/2048-cli.git
  2. Install the dependencies (python libraries):
    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, following all clarifications stated in the license file