Home

Awesome

pyQT6 2048

A 2048 game implemented in python-pyqt6 that can also run in EAF

<img src="./img/eaf-2048.png" alt="Cover" width="60%"/>

Required packages

Usage

h/j/k/l arrow to move

num + r to restart a game with side length num

Python

git clone git@github.com:metaescape/2048pyqt6.git 2048
cd 2048
python buffer.py 4  # start a 4x4 grid game
python buffer.py 0  # watch AI play a 4x4 game

EAF

git clone git@github.com:metaescape/2048pyqt6.git 2048
mv 2048 ~/.emacs.d/site-lisp/emacs-application-framework/app

or

git clone git@github.com:metaescape/2048pyqt6.git ~/.emacs.d/site-lisp/emacs-application-framework/app/2048

or

cd ~/.emacs.d/site-lisp/emacs-application-framework/
./install-eaf.py --install 2048
(add-to-list 'load-path "~/.emacs.d/site-lisp/emacs-application-framework/")
(require 'eaf)
(require 'eaf-2048)

recorded via emacs-gif-screencast

original

QT: https://github.com/jingdao/2048-pyqt

AI: https://github.com/kcwu/2048-python