2048 icon indicating copy to clipboard operation
2048 copied to clipboard

yet another 2048, but this time it's controlled by GPT



2048

About a few years ago, I built 2048.wasm

This is yet another 2048 from me, but this time it's controlled by GPT.

Demo

https://user-images.githubusercontent.com/20226361/235618304-a5067753-2017-4849-a5cd-d58463e5b766.mov

How GPT crushes my high score in 2048

Play

  • Replace the OPENAI_KEY in main.js with your own key.
  • Navigate to 2048.io
  • Paste the contents of main.js in your browser console. That's it!

But Why?

I came across this comment while scrolling through HackerNews today, and for some reason I found it funny. On the way back home, I thought why not get it to work with 2048? Here's my 100 line of really poor javascript, thank you!

  • Want to fix something? have a better prompt than this? see that Pull Requests link up there? Go ahead!

Credits