3 ms·
Cool! I used a similar trick in my 2048 AI: https://github.com/nneonneo/2048-ai https://github.com/nneonneo/2048-ai. In my case I allow the tiles to go all the
by nneonneo 1y ago
Cool! I used a similar trick in my 2048 AI: https://github.com/nneonneo/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 gameboard into a single machine register, which makes it super efficient. In this case I see that you’re able to pack in a seed value to enable replayability - neat!
- kccqzy 1y agoLove the fact that you refer to your program as AI. We need more people to use AI to refer to non-LLM technologies lest the term be redefined.