网页 综合 更新时间 2026-10-31 02:18:22

Singularity News :: CCG - DEV Community

自动蜘蛛 dev.to 正文约 6000 字
Singularity News :: CCG - DEV Community
Posted on Oct 31 • Edited on Oct 31
Hacktoberfest Open-Source AI Challenge: Ghost in the Machine Submission 👻🌼
This is a submission for the Hacktoberfest Open-Source AI Challenge Week 4: Ghost in the Machine
The Singularity News editorial team is pleased to announce that, to help everyone prepare for the upcoming events, they are trying to share all the knowledge gathered from interviews with carefully selected subjects in a lighthearted and interactive format. At the same time, they firmly reject any accusations that including the Halloween target audience had any negative influence on the outcome. - Mr. Slop
Unfortunately, I have to say that Halloween has lost quite a bit of its shine in the light of the future looming over our heads. So for the final week, I created this CCG = Collective Card Game.I borrowed the card game system from the Flogons. I didn't have time to fully develop the game in that project, but now I did. The CSS-based 3D rendering introduced there came in extremely handy, along with the pure HTML concept, resulting in a no-build development approach.
I think the game speaks for itself, and since it's a PWA, it can also be installed on mobile phones.
I also thought of those who don't like learning the rules of a new card game. Well, for them there's the Auto:on feature. By activating it, you can basically sit back and watch the game play itself like a movie.
no online multiplayer yet – the 4- and 7-player tables are played against bots
But the main point is that, throughout the game, you can interview every single card. And I'll just reveal that the final outcome was also created with some serious AI assistance.
I think that's enough for now.
The entire backstory and the characters — who, of course, have absolutely nothing to do with any real or fictional individuals — come from the world of my Singularity News feed.
For example, the Halloween target audience.
Keep reading and share your comment! SN::0001 |> SN::0010 |> SN::0011
https://singularity-news-ccg.vercel.app/
https://github.com/Pengeszikra/singularity-news-ccg
This moment is the SCARIEST part of development!
When I noticed that Claude had based it on one of the articles in my Pure HTML series, I realized it had taken the concept so seriously that it even embedded the images directly into index.html.
Gemma – Gemma 4 (gemma-4-26b-a4b-it, via the Gemini API) and gpt-oss-120b (on Groq) was used. The whole build process is documented in PROMPTS.md – every prompt I gave the agent, in the original Hungarian.
Open-weight models give me freedom: the same prompts run on Gemma 4 or gpt-oss-120b today, and later I can move to a local model to save tokens and money, without rewriting the game.
The whole development process once again reminded me of what I wrote in my Vibe Archeologist article. I dug up solutions I had written almost two years ago, and by relying on today's slop coding techniques, I was able to implement them confidently and at an incredible speed.
Pure HTML + No Build System forever!!
And finally, I was able to develop the entire program from the director's chair, resulting in a game that can actually be played from beginning to end and always has a few surprises in store.
Thanks for watching!
The 42 rule got me and the singularity actually rewriting the rules mid-run (rebels / survivors / zombies converting each other) is a really fun twist on the Math Match pairing. Also nice that the AI is optional and the game falls back to built-in texts when there's no key.
I went through the repo and noticed a few things, hope it's useful:
About 1.1 MB of the 1.2 MB index.html is base64 JPEGs. Since the service worker loads the page network-first with no-store, every launch while online downloads all of it again. Moving the images into separate files would let the SW cache them, so repeat visits on mobile would be much lighter.
In api/ai.js the daily cap, the per-IP limit and the 6h news cache all live in memory. On Vercel each instance gets its own counters and they reset on cold starts. Fine for now, but if the post takes off, Vercel KV or Upstash would protect your API budget better.
The "Online AI" section of the README still says it runs on Groq / gpt-oss and the env table doesn't list GEMINI_API_KEY, while the next section says Gemma 4 is the default. Easy to trip over if someone deploys their own copy.
Tiny one: the inverse pair shows up as "INVERZIT" in the score popup, looks like a Hungarian leftover
Curious which model writes the better Mr. Slop, Gemma 4 or gpt-oss?
Lol Inverzit is still exsist in this program! Thanks for this details, this is a sci-fi material name of Flogon-Galaxy. Good to hear about this detail. Thank you I will get your points! But right now code freeze. If you would like to try your improvments, feel free to fork and try it! This is a open source stuff.
"Pure HTML + No Build System forever!!" 🙌
As a 12-year-old dev building entirely on a $150 Android phone, I feel this mantra in my soul. Bloat is the enemy, and constraints breed the most creative solutions.
The "Vibe Archeologist" concept is brilliant, and the way you leveraged Gemma 4 and gpt-oss-120b to dynamically generate Mr. Slop's news ticker and character interviews is incredibly clever. It’s a perfect example of using AI not just to write boilerplate, but to create a genuinely interactive, living experience (the "Auto:on" movie mode is a fantastic touch for accessibility, too).
This is a super inspiring submission for the Hacktoberfest challenge. It’s a great reminder that sometimes the most powerful "stack" is just raw HTML, CSS, and a clear vision.
Quick question: since you mentioned gpt-oss-120b is a manual fallback, did you find the latency or token costs significantly different between the two models when generating the in-game character interviews?
Amazing work, Peter! 🐯☁️
Clean up close: consistent card sizes across all sixteen, no overflow, titles sitting on one line.
What will bite you is scale, not the art. That gr
访问原文 返回搜索 https://dev.to/pengeszikra/singularity-news-ccg-5ejk
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。