An AI agent which can routinely beat the game 2048 by expecting several tile spawns in the future and calculating optimal moves based on a number of heuristics.
A JavaScript-enabled web browser is all that is needed to play this variation of 2048.
Download the repo as a .zip, unzip it on your desktop and double-click the index.html.
The AI agent itself is contained within the /js subdirectory in the file "agent.js".
- Agent regularly achieves the 2048 tile, resulting in a winning game state
- Agent is fast, moving as much as 15 times per second depending on hardware
- Optimize the agent to reach the 4096 tile
- Perform expectation several moves ahead, instead of expecting possible tile spawns at immediate next move
If you think you can improve this project, please feel free to make a branch followed by a pull request!
Original codebase borrowed from: http://gabrielecirulli.github.io/2048/
This software is provided free of any license, and you are entirely responsible for how you choose to use it.