Coder Social home page Coder Social logo

curses-2048's Introduction

curses-2048

http://i.imgur.com/ASZCWBQ.png

A terminal/ncurses/python version of the original game at http://gabrielecirulli.github.io/2048

  • Free software: GPL license

Install

Open your terminal and type:

$ pip install curses-2048

or

$ easy_install curses-2048

Usage

$ 2048

256 colors

If your terminal has support for 256 colors you will see colors mimicking the original game, something like the screenshot above. If your terminal only supports 16 colors, you will se something like this:

http://i.imgur.com/S4F4wgW.png

Recent versions of xterm and gnome terminal are known to support 256 colors, if you do not see them, probably your environment variable TERM is not set accordingly. Do

$ export TERM=xterm-256color

or, if you are using screen or tmux

$ export TERM=screen-256color

to enjoy curses-2048 in full 256 colors glory.

Use the cursor keys to move and join tiles. Get to the 2048 tile!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.