An implementation of the game 2048 in python and an AI algorithm to solve it. AI based on Monte Carlo simulations.
Usage
- Use the command
pypy 2048.py
in the command line to run the program. (If you dont have PyPy installed, you can run the program withpython 2048.py
, but it's not reccomended) - Set the number of runs per move by pressing 1 on your keyboard, or press 2 to use dynamic mode. I reccomend running with 10-15 runs if you're not using PyPy, or 75-100 if you are. Dynamic mode only reccomended if using PyPy
- Press 3 (or 5) to run the AI