Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/inishchith/2048

yet another 2048, but this time it's controlled by GPT
https://github.com/inishchith/2048

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        







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`](https://github.com/inishchith/2048/blob/2f1ae2a1acb5d6ddabac01835316ce4618f12a3a/main.js#LL1C1-L1C1) 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](https://news.ycombinator.com/item?id=35771104&p=3#35774028) 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

- Creator of [2048.io](2048.io): [Gabriele Cirulli](https://twitter.com/gabrielecirulli)