term2048-master

所属分类:棋牌游戏
开发工具:Python
文件大小:35KB
下载次数:4
上传日期:2017-07-25 10:14:06
上 传 者赫赫何
说明:  使用python实现的2048游戏,可以使用键盘操作,实现游戏。
(Python implementation of the 2048 game, you can use the keyboard operation, the realization of the game)

文件列表:
.travis.yml (231, 2017-03-07)
CHANGES.txt (1499, 2017-03-07)
LICENSE (1069, 2017-03-07)
MANIFEST.in (86, 2017-03-07)
Makefile (1311, 2017-03-07)
img (0, 2017-03-07)
img\term2048.png (17428, 2017-03-07)
py26-requirements.txt (17, 2017-03-07)
requirements.txt (99, 2017-03-07)
setup.py (1339, 2017-03-07)
term2048 (0, 2017-03-07)
term2048\__init__.py (22, 2017-03-07)
term2048\board.py (5115, 2017-03-07)
term2048\game.py (8293, 2017-03-07)
term2048\keypress.py (1631, 2017-03-07)
term2048\ui.py (1624, 2017-03-07)
tests (0, 2017-03-07)
tests\helpers.py (629, 2017-03-07)
tests\keypress_mock.py (787, 2017-03-07)
tests\test.py (598, 2017-03-07)
tests\test_board.py (9213, 2017-03-07)
tests\test_game.py (10266, 2017-03-07)
tests\test_keypress.py (2723, 2017-03-07)
tests\test_ui.py (5924, 2017-03-07)
tox.ini (257, 2017-03-07)

======== term2048 ======== .. image:: https://img.shields.io/travis/bfontaine/term2048.png :target: https://travis-ci.org/bfontaine/term2048 :alt: Build status .. image:: https://img.shields.io/coveralls/bfontaine/term2048/master.png :target: https://coveralls.io/r/bfontaine/term2048?branch=master :alt: Coverage status .. image:: https://img.shields.io/pypi/v/term2048.png :target: https://pypi.python.org/pypi/term2048 :alt: Pypi package **term2048** is a terminal-based version of 2048_. .. _2048: http://gabrielecirulli.github.io/2048/ .. image:: https://github.com/bfontaine/term2048/raw/master/img/term2048.png Install ------- .. code-block:: pip install term2048 To upgrade a previous installation, use: .. code-block:: pip install -U term2048 Install from source ~~~~~~~~~~~~~~~~~~~ .. code-block:: git clone https://github.com/bfontaine/term2048.git && cd term2048 [sudo] python setup.py install Play ---- .. code-block:: term2048 Then use arrow keys to move. Since version 0.2.1 VI keys (h,j,k,l) are also supported. Use ``-h`` to check the list of available options, and ``--rules`` for the game rules. Press ```` at any time during the game to pause the game (since 0.2.5). Tests ----- Clone this repo, then: :: [sudo] make deps make check Note: while ``term2048`` should work on Windows, tests are meant to run on UNIX-like OSes and ``term2048.keypress``-related tests may fail on Windows. Contributions ------------- * ``--version`` flag added by @aminb * ``--rules`` flag added by @cardern * Short ``-r`` and ``-v`` flags added by @yankuangshi * Resume feature added by @pravj v0.2.0 ~~~~~~ * Python 2.6 and 3.x support by @shaunduncan * Tests instructions fixed by @olafleur * Spawn probabilities fixed by @frankh * Colors improved by @idosch * hjkl keys support by @aminb * Windows support by @valtron * AZ mode by @JosephRedfern * The first file-related tests were added by @taeram

近期下载者

相关文件


收藏者