Hacker News new | ask | show | jobs
by stnmtn 656 days ago
Wow. I typed in: Create a page that has a snake game clone that you can control with the keyboard.

Within <20 seconds, i was playing it. That was crazy. I then asked it to add better graphics, retro-style. And add a counter displaying the current snake length. And then finally, add a high score tracker after the game ended. Adding the tracker caused an error, and I told it to fix the error. It looked at the logs and fixed it. There is still a bug where the top 10 scores all update at once, but I'm sure if i didn't hit the free credit limit on the site I could ask it to fix that.

I did all of this within ~3 minutes. It works, and while it is very suboptimal (it plays Snake using basic React state code, not ideal lol), the speed of this and how surprised I am reminds me of the first time I talked with ChatGPT 2 years ago. Amazing work.

I don't know if these are shareable, but this is the link I'm using to view the page it built:

https://preview--arrow-snake-adventure.gptengineer.run/

2 comments

Just a warning about testing with snake/tetris - they're the most reimplemented games in the world and there's so many examples those models learned from. For a more realistic test, it's better to try something novel.
Mm, even so Tetris is one of my tests, and one of the models small enough to run locally on my machine… started off badly, then suddenly switched from "Tetris as a web app" to "train an ML model in python".

So I think it's a valid quick sanity test, like fizz-buzz for human devs.

You can get government subsidies in Germany using snake :)

News in German from a week ago, 180,000 Euros in Government subsidies to develop a modern Snake: https://www.iphone-ticker.de/spielefoerderung-in-der-kritik-...

Agreed, but I think that dismisses the ease of use of this product compared to other offerings. Being able to type in a single sentence and have a full webpage of exactly what you asked for in less time than takes to stand up and stretch is kind of magical.
search engine dot com and “snake game” is still probably faster though. which is the point gp was trying to make. there’s so much training data on snake, that this is what you’re essentially doing.
may be search it's faster, but this thing is supposed to do it something like fortran and console. ;)
Just want to point out that the flow you're describing is not that noteworthy and has been doable in many instant text-to-app services for at least a year, and doesn't really include any of the points that OP highlights as the USP. Vercel has their own (v0) etc. Your version even looks the same as when you tell WebSim to make a snake game. Townie from val.town is the best in my opinion because it can also generate live backend endpoints.

It's a really saturated market but I wish OP the best of luck.