/2048-python

Primary LanguagePythonMIT LicenseMIT

2048-python

Based on the popular game 2048 by Gabriele Cirulli, here is a Python version that uses TKinter.

screenshot

To start the game, run:

$ python puzzle.py

To run an example AI, run:

$ python runner.py

To get more information about possible options, run:

$ python runner.py --help

To create a new algorithm, create python file in subdirectory "algorithms" and implement function get_next_moves(matrix). To execute algorithms/MyFancyAlgorithm.py run:

$ python runner.py -a MyFancyAlgorithm

Contributors: