{"id":13482130,"url":"https://github.com/bfontaine/term2048","last_synced_at":"2025-04-11T23:17:23.746Z","repository":{"id":14985386,"uuid":"17710592","full_name":"bfontaine/term2048","owner":"bfontaine","description":":tada: 2048 in your terminal","archived":false,"fork":false,"pushed_at":"2022-03-03T10:07:23.000Z","size":212,"stargazers_count":805,"open_issues_count":1,"forks_count":133,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-04-11T23:17:19.375Z","etag":null,"topics":["cli","game","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfontaine.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-13T13:16:49.000Z","updated_at":"2025-03-23T00:32:00.000Z","dependencies_parsed_at":"2022-09-04T14:02:29.276Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/term2048","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fterm2048","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fterm2048/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fterm2048/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fterm2048/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/term2048/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492884,"owners_count":21113163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","game","python"],"created_at":"2024-07-31T17:00:59.291Z","updated_at":"2025-04-11T23:17:23.724Z","avatar_url":"https://github.com/bfontaine.png","language":"Python","funding_links":[],"categories":["\u003ca id=\"tag-games\" href=\"#tag-games\"\u003eGames\u003c/a\u003e","Python","beyond the web..."],"sub_categories":[],"readme":"========\nterm2048\n========\n\n.. image:: https://img.shields.io/travis/bfontaine/term2048.svg\n   :target: https://travis-ci.org/bfontaine/term2048\n   :alt: Build status\n\n.. image:: https://img.shields.io/coveralls/bfontaine/term2048/master.svg\n   :target: https://coveralls.io/r/bfontaine/term2048?branch=master\n   :alt: Coverage status\n\n.. image:: https://img.shields.io/pypi/v/term2048.svg\n   :target: https://pypi.python.org/pypi/term2048\n   :alt: Pypi package\n\n**term2048** is a terminal-based version of 2048_.\n\n.. _2048: http://gabrielecirulli.github.io/2048/\n\n.. image:: https://github.com/bfontaine/term2048/raw/master/img/term2048.png\n\nInstall\n-------\n\n.. code-block::\n\n    pip install term2048\n\nTo upgrade a previous installation, use:\n\n.. code-block::\n\n    pip install -U term2048\n\nTo install via `snap`_:\n\n::\n\n    sudo snap install term2048\n\n.. _snap: https://www.snapcraft.io\n\nInstall from source\n~~~~~~~~~~~~~~~~~~~\n\n.. code-block::\n\n    git clone https://github.com/bfontaine/term2048.git \u0026\u0026 cd term2048\n    [sudo] python setup.py install\n\nPlay\n----\n\n.. code-block::\n\n    term2048\n\nThen use arrow keys to move. VI keys (h,j,k,l) are also supported.\n\nUse ``-h`` to check the list of available options, and ``--rules`` for the\ngame rules. Press ``\u003cspace\u003e`` at any time during the game to pause it. You can\nresume it later using ``term2048 --resume``.\n\nTests\n-----\n\nClone this repo, then: ::\n\n    [sudo] make deps\n    make check\n\nNote: while ``term2048`` should work on Windows, tests are meant to run on\nUNIX-like OSes and ``term2048.keypress``-related tests may fail on Windows.\n\nContributions\n-------------\n\n* ``--version`` flag added by @aminb\n* ``--rules`` flag added by @cardern\n* Short ``-r`` and ``-v`` flags added by @yankuangshi\n* Resume feature added by @pravj\n* Snap installation method added by @LaughingLove\n\nv0.2.0\n~~~~~~\n\n* Python 2.6 and 3.x support by @shaunduncan\n* Tests instructions fixed by @olafleur\n* Spawn probabilities fixed by @frankh\n* Colors improved by @idosch\n* hjkl keys support by @aminb\n* Windows support by @valtron\n* AZ mode by @JosephRedfern\n* The first file-related tests were added by @taeram\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fterm2048","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fterm2048","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fterm2048/lists"}