Hacker News new | ask | show | jobs
by realYitzi 1253 days ago
And ChatGPT can tell that it's a game of Snake from the URL. https://www.tiktok.com/@y.i.t.z.i/video/7186055378977803521

"When decoded, the script appears to be a Snake game implemented using JavaScript and the HTML5 canvas element. The script creates an HTML page with a canvas element and adds event listeners for arrow keys and space bar to control the game."

2 comments

Wow, that's actually impressive. Any idea how chat gpt would know that? Surely it's not making the request for it and surely it's not actually decoding any base64 right?
ChatGPT has probably seen plenty of half-baked excercise/homework snake implementations on Github to tell that this is another one of those.

(Yes, this is moving the goalposts and implying that true AI is just over the horizon...)

You'd be right a good chunk of the time if you said it was a snake game just by seeing that it was a data URL and had the word 'canvas' in.
I can venture a guess, but gonna wait until I know what I'm talking about.

Over here it decodes a js animated SVG https://vt.tiktok.com/ZS8rcjhgg/ but made a few slight mistakes.

I recall seeing that it's actually quite fluent in base64
Wow that's impressive. Is ChatGPT updating its model fast enough that this repo could have been included or is it really figuring out what this is from the code itself?
ChatGPT had it's last update on 15th Dec 2022, but the main scrape of the web for training data was ~2020.

Try asking it about someone famous from 2021 and it usually doesn't know.