๐Ÿ“ฆ weihanglo / py2048

A simple 2048 clone in Python Tkinter

โ˜… 2 stars โ‘‚ 1 forks ๐Ÿ‘ 2 watching
game-2048python-tkintertkinter
๐Ÿ“ฅ Clone https://github.com/weihanglo/py2048.git
HTTPS git clone https://github.com/weihanglo/py2048.git
SSH git clone git@github.com:weihanglo/py2048.git
CLI gh repo clone weihanglo/py2048
weihang weihang check dependencies d115cf6 9 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ py2048
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ demo.png
๐Ÿ“„ README.md
๐Ÿ“„ setup.py
๐Ÿ“„ README.md

2048 in TKinter =============== A simple 2048 clone in Python TKinter.

demo

Usage

from py2048 import runApp
runApp()

Dependencies

tkinter (with Tcl/Tk 8.6)

Installation

via pip:

pip install git+https://github.com/weihanglo/py2048.git
# or
pip install https://github.com/weihanglo/py2048/archive/master.zip

via git clone:

git clone https://github.com/weihanglo/py2048.git
cd py2048
python3 setup.py install

If you have some trouble in importing tkinter, try following commands.

# Ubuntu/Debian
sudo apt-get install python3-tk

# Fedora/CentOS
sudo dnf install python3-tkinter

Tests

All tests are passed under:

  • Python 3.5.1 with OSX 10.11.4,
  • Python 3.4.3 with Fedora 23,
  • Python 3.4.2 with Debian 8.
To test the logical part, clone and run the commands:
python3 setup.py test

Authors