A Python AI for the 2048 game based on expectimax optimization
To install requirements
conda env create -f environment.yml
conda activate 2048_ai
python ai.py
Result of 10000 runs
- Average score: 27373
- Best score: 104116
- ≥ 1024: 94.63%
- ≥ 2048: 64.86%
- ≥ 4096: 7.16%
- ≥ 8192: 0.01%
- Speed: 4.401 ms/step (without GUI)