Hacker GitHub

← All repos

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

Mentions per year 5 mentions · busiest year 2018 (2)
20082026
  1. 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
  2. …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…
  3. …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
  4. …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
  5. 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.