nneonneo/2048-ai
View on GitHub ↗ ★ 1,224 Python
AI for the 2048 game
5 mentions on Hacker News by 3 people: 0 stories, 5 comments · first 2016-03-20 · latest 2025-06-22
20082026
-
Cool! I used a similar trick in my 2048 AI: https://github.com/nneonneo/2048-ai . In my case I allow the tiles to go all the way up to 32768, so I just have one tile per nybble. Using this representation is great: it lets me pack a whole…
comment by nneonneo · 2025-06-22 · in 2048 with only 64 bits of state -
…later, building what was (at that time) the best AI for the game while procrastinating on my PhD! ( https://github.com/nneonneo/2048-ai , https://stackoverflow.com/a/22498940/1204143 ) I'd actually built an AI for Threes some time earlier…
comment by nneonneo · 2024-10-25 · in Show HN: 2048 turned 10 this year, I built an updated version to celebrate -
…if you can get better speeds by implementing the search in C/C++ - I did so with my 2048 bot ( https://github.com/nneonneo/2048-ai ) and was able to go from a few hundred thousand moves per second with Python, up to 10,000,000 moves per…
comment by nneonneo · 2018-05-28 · in Brute SPL-T -
…on the browser extension and watch it go. It's come quite a long way from the earlier versions. [0] https://github.com/nneonneo/2048-ai
comment by memco · 2018-04-10 · in The Mathematics of 2048: Optimal Play with Markov Decision Processes -
Wow, the C++ AI linked at https://github.com/nneonneo/2048-ai is really well written. Anyone who is interested in learning how this kind of AI works would be well served by studying that code.
comment by devit · 2016-03-20 · in Artificial Intelligence has crushed all human records in 2048 (2015)