Based on the popular game 2048 by Gabriele Cirulli, here is a Python version that uses TKinter.
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 getNextMoves(matrix). To execute algorithms/MyFancyAlgorithm.py run:
$ python runner.py -a MyFancyAlgorithm