Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/inishchith/2048
- Owner: inishchith
- License: mit
- Created: 2023-05-02T06:49:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-02T08:35:49.000Z (over 1 year ago)
- Last Synced: 2024-06-15T15:38:11.675Z (5 months ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 43
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - 2048 - yet another 2048, but this time it's controlled by GPT (Others)
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)