Moves per second:
Last move time:
Average move time:
Total move time:
Total moves:
Reset
How to play: Use your arrow keys to move the tiles. When two tiles with the same number touch, they merge into one!
This is a similar algorithm to SleepyCoder's 2048 AI, but rewritten so it can be used on any sized grid (so the performace is worse, because it uses the integrated grid object instead of a bitboard). I also added performance statistics. Press the G key to start/stop the AI. Press the F key to do one move.
The algorithm reaches the 2048 tile about 70% of the time. I decreased the search depth to 2 to make it faster. The algorithm often messes up right before it would get a 4096 tile.