5 ms·
Asking LLMs to create my game Shepard's Dog
- owenpalmer 2y agoThe one that Claude created was a legitimately fun game! If it implemented boids similar to o3-mini, it would be even better. Slap some sprites on it and put it on steam!
- jofzar 2y agoI clicked it and went, oh this is actually fun. It feels very early iPhone days mobile game.
- matsemann 2y agoOn desktop the map is huuuuge and it's not particularly fun waiting for them to slowly move all the way to the opposite corner. It's cool that one can prototype this quickly, but needs some tweaks from play-testing as with all games I guess.
- vnglst 2y agoShepherd's Dog is a game I've wanted to create for a long time, but I never got the sheep flocking behaviour just right. The goal of the game is to herd all the sheep into the pen before nightfall. I've asked several models to create this game and I'm particularly impressed with what Claude 3.7 could do with a one-shot prompt. - You can play the Claude game here (note: doesn't work on Safari for some reason): https://html-preview.github.io/?url=https://raw.githubusercontent.com/vnglst/when-ai-fails/refs/heads/main/shepards-dog/claude-3.7/index.html https://html-preview.github.io/?url=https://raw.githubuserco... - o3-mini's version is here: https://html-preview.github.io/?url=https://raw.githubusercontent.com/vnglst/when-ai-fails/refs/heads/main/shepards-dog/o3-mini/index.html https://html-preview.github.io/?url=https://raw.githubuserco... Results of other models and a leaderboard is here: https://github.com/vnglst/when-ai-fails/blob/main/shepards-dog/README.md#leaderboard https://github.com/vnglst/when-ai-fails/blob/main/shepards-d... Some videos: https://hachyderm.io/@vnglst/114125938185826311 https://hachyderm.io/@vnglst/114125938185826311
- breckenedge 2y agoSince you’re releasing the code to GitHub, do you think you’ll eventually run into issues with the training data including prior versions of the game?
- tdy_err 2y agoThe implied scenario being that the memory of its own output would result in the model producing degraded future output? Why is that a given?
- Chaosvex 2y agoRead about model collapse. The TL;DR is garbage in, garbage out. https://en.wikipedia.org/wiki/Model_collapse https://en.wikipedia.org/wiki/Model_collapse
- mythrwy 2y agoProbably the same reason that close relatives marrying each other for generations produces genetic problems.
- Etherlord87 2y agoNot the same reason at all. In genetics the reason is that you're losing gene variety and eventually recessive genes aren't suppressed anymore. In case of LLM it's just error accumulation.
- mythrwy 2y agoIt's a few days late but "losing gene variety" isn't the cause. What happens is genetic errors compound and are more likely to be expressed. I.E. "error accumulation".
- Etherlord87 2y agoYou're wrong. You clearly have the Internet, I don't understand why won't you just google it and learn about it instead of claiming stuff that is bs.
- frotaur 2y agoSeems o3-mini implements the 'boids' algorithm for flocking (likely due to its prevalence online), but I find that here it doesn't really fit. Indeed in boids each element has a constant (or minimum) velocity, s.t. the sheep never stop 'running'. I find the Claude flocking behaviour looks more natural, for sheep.
- the_arun 2y agoAll the demo sites are flagged by Microsoft Edge as - "This site has been reported as unsafe". The irony is the demos are hosted on github pages.
- tigerlily 2y agoAre they doing this now? Oh brother! And here I was thinking WASM would be a good solution to the desktop exe signing problem for my community's roguelike. Instead browser vendors are likely just going to ban the site.
- shakna 2y agoProbably related to this recent chaos. [0] [0] https://www.theregister.com/2025/03/10/infosec_in_brief/ https://www.theregister.com/2025/03/10/infosec_in_brief/
- NitpickLawyer 2y agouBO lite as well: > uBO Lite has prevented the following page from loading: https://html-preview.github.io/?url=https://raw.githubusercontent.com/vnglst/when-ai-fails/refs/heads/main/shepards-dog/claude-3.7/index.html https://html-preview.github.io/?url=https://raw.githubuserco... The page was blocked because of a matching filter in OpenPhish Domain Blocklist.
- ido 2y agointeresting, im also using edge (with all security settings set to maximum) and it works fine for me. Maybe the difference is that I'm using it on mac?
- 4ndrewl 2y agoHa, I've been creating this on-and-off for a while. Just last night I asked various LLMs to implement a boid-with-predator algorithm and all failed hard. Instead I spent an hour reading through a description and implementing manually and it at least worked. But yes, boids is a good start, but it requires some work to make it more natural for mammals, who can have a 0 min speed.
- tobyhinloopen 2y agoThat's actually a fun game hah
- panglesd 2y agoInteresting experiment. Would love to see a multiplayer version of this game!
- avereveard 2y agohttps://store.steampowered.com/app/2410820/Too_Many_Sheep/ https://store.steampowered.com/app/2410820/Too_Many_Sheep/ both cooperative and competitive
- SrZorro 2y agoAlso, https://store.steampowered.com/app/3006280/Sheepherds/ https://store.steampowered.com/app/3006280/Sheepherds/ > A cozy co-op party game where you and your sheepdog buddies guide colorful flocks through beautiful landscapes [...] It has a free demo but no release date yet
- franze 2y agoChatGPT o1 Pro Demo: https://show.franzai.com/a/clean-parrot-brown https://show.franzai.com/a/clean-parrot-brown (Page will self-destruct after 3 months, feel free to host it somewhere else) Oneshot Prompt https://chatgpt.com/share/67cff8e6-e218-8009-af5b-d91060eaed25 https://chatgpt.com/share/67cff8e6-e218-8009-af5b-d91060eaed...
- HenryBemis 2y agoTip: don't push them into a corner! I got up to lvl 7 without a problem, and then I got them stuck in a corner and that was it :( Poor sheep will spend the night in the cold outside the barn!
- franze 2y agoAfter some rounds in Cursor using different models https://show.franzai.com/a/leaf-bug-wasp https://show.franzai.com/a/leaf-bug-wasp (LGPT - feel free to fork - Page will vanish in 3 months)
- viccis 2y agoBrought me back to the cowherding missions in RDR. Not a fond memory, but still a memory nonetheless.
- h4kor 2y agoQuiet impressive! I've build a very similar game for a 3 hour game jam once :D https://h4kor.itch.io/herding-simulator https://h4kor.itch.io/herding-simulator
- oneeyedpigeon 2y agoWeird coincidence, but you made the exact same typo the OP made in their prompt. It's "built", not "build" :)
- matsemann 2y agoI once made a boid-thingy, which this also reminds me of. https://matsemann.github.io/boids-workshop/ https://matsemann.github.io/boids-workshop/ (and since the parent game is mostly boid behavior with a goal condition, I guess that's why the LLM is so successful in implementing it?) The link is the final result with lots of controls, but the idea is that it's a tutorial/workshop where you build it step by step yourself, in Norwegian though https://github.com/Matsemann/boids-workshop https://github.com/Matsemann/boids-workshop
- unwind 2y agoMeta: strange typo in title, "Shepard" should be "Shepherd".
- boredhedgehog 2y agoPerhaps the shepherd's name is Shepard. :-)
- vnglst 2y agoAs I cannot change the title anymore I think that’s my best option now :-)
- shever73 2y agoAfter nearly 40 years, Shep has finally been released! See the Crash magazine "Unclear User" parody. Page 125 of the August 1985 edition for context. [0] [0] https://archive.org/details/Crash_No._19_1985-08_Newsfield_GB/page/n123/mode/2up https://archive.org/details/Crash_No._19_1985-08_Newsfield_G...
- srejk 2y agoThat you remember this from one month before I was born is incredible.
- boredhedgehog 2y agoClaude actually animated the nightfall, unprompted. I don't think it's fair to say Mistral didn't implement flocking. The force is just very weak. EDIT: I guess I confused flocking with herding, fair enough.
- oneeyedpigeon 2y agoI wish GitHub would do a: pre { text-wrap: wrap; }
- pesterazor 2y agoYes but... Why don't you see elephants hiding in trees?
- superflow 2y agoThe political views of flags is a instant stop for me. I wonder what radobank thinks of that. Keep politics out of tech, and especially if you are in the dutch market, it's such a small market, that you would not want something like that to stop a contract in the future, especially seeing that you user to be a zzp'er.
- stijnstijn 2y ago> Keep politics out of tech This is a wild thing to say in 2025. What 'political views of flags' anyway? I played a few levels and saw no flags, political or otherwise.
- rafram 2y agoOP has Ukrainian and EU flags on his Mastodon profile, which is linked from his GitHub profile. Apparently that’s not acceptable to GP.
- superflow 2y agothe reality is, the netherlands is a right leaning country, look at the last election results. A lot of people in the netherlands are very divided about poltics (stop the war, and side with the US, leave the EU, or give more money to ukraine and are pro EU). I hear about this on a daily basis at work. I am quite sick hearing about it. As a hiring manger at one of the big four banks in the netherlands, seeing something like the flags, is a obvious sign as to what side the OP leans towards. Having enough issues on my plate, and not needing another person to start a debate between team members at work is enough for me to stop, and not hire said person. The OP is or was a zzp'er (freelancer) in the netherlands. I think it's a little silly to limit your future contracts by brining in politics into tech. What's the purpose of having it there?
- rafram 2y agoOP is doing nothing wrong, and if you refused to hire them based on their political views, you would be committing a crime: https://www.government.nl/topics/discrimination/prohibition-of-discrimination https://www.government.nl/topics/discrimination/prohibition-...
- cainxinth 2y agoI finally got around to playing Red Dead Redemption 1 recently and was surprised at how much I enjoyed the cattle driving missions.
- deleted 2y ago[deleted]
- franze 2y agoHere an updated version using ChatGPT o1 Pro, Claude, and Cursor https://news.ycombinator.com/item?id=43360648 https://news.ycombinator.com/item?id=43360648