Live data from Hacker News

Show HN: URL Snake

github.com

31–36 of 36 posts

Re: Show HN: URL Snake

#32

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."

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?

I recall seeing that it's actually quite fluent in base64

Re: Show HN: URL Snake

#33

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."

[deleted]

Re: Show HN: URL Snake

#34

Nice! I made a 250-byte Snake game (265 as a URL) a few years ago after spending far too long code-golfing it: https://danielgjackson.github.io/tinyjs#snake ...and even a 224 byte version (240 as a URL), but with a few too many sacrifices.

You are on a completely different level. Wow. I am going to spend absolutely too long tomorrow trying to work out how on earth you've done that. Cheers!

It was spread over a long time, and quite painful to get there!

If it's useful, I added an explanation of how it works at:

https://github.com/danielgjackson/tinyjs/blob/master/mini-ex...

Post reply on HN