单文件生成的可玩肉鸽卡牌构筑游戏

Bruce Martin

I used @DevinAI and gave Gemini 4 Argon and SWE-2 Max the exact same prompt. One shot each. No follow-ups, no fixes. COST: Argon: ~$1.75 total build cost (75% off only in Devin (95¢ input + 28¢ cached + 55¢ output) SWE-2: $0 - free tier (Free in Devin until Oct16) Rate: $1/$0.05/$5 per Mtok Time Taken: Argon: 56 minutes to done SWE-2: 89 minutes to done Tokens used: Argon: 6.5M in / 109K out SWE-2: 6.2M in / 100K out Interesting wrinkle: Argon wrote 3x the code, 33 min faster. SWE-2 spent longer but packed more content into fewer lines. The prompt: "Build a complete, playable roguelike deck-builder as ONE self-contained HTML file · no external assets, no CDN, everything inline (CSS, JS, SVG art). - 60+ unique cards across 3 playable classes, each with genuinely distinct mechanics — no reskins - Procedurally generated branching dungeon map with combat, elite, shop, rest, and random-event nodes - 15+ enemies with distinct behaviors and telegraphed intents, plus 3 multi-phase bosses - Relics, potions, card upgrade/removal, gold economy, status effects (poison, weak, vulnerable, strength) - Save/load via localStorage, run-summary screen, and a card compendium - Juice: floating damage numbers, card-play animations, screen shake, hover previews Write the whole file to deckbuilder.html, then verify it actually renders — open it in a headless browser, take a screenshot, and fix whatever's broken. Go deep, not broad." Both delivered a full, playable game. I drove both in headless Chrome, parsed the data tables, and measured the builds side by side: 📊 THE NUMBERS Cards (60+ required) Argon 72 · SWE-2 93 Enemies (15+ required) Argon 19 · SWE-2 30 Multi-phase bosses Argon 3 · SWE-2 3 Relics / potions Argon 18/12 · SWE-2 25/8 Lines of code Argon 4,701 · SWE-2 1,555 File size Argon 183KB · SWE-2 110KB Boot to render Argon 34ms · SWE-2 24ms DOM nodes at boot Argon 218 · SWE-2 17 JS heap ~9.5MB both ⚔️ THE DIFFERENCE Argon invented three original class mechanics: a Cinderblade juggling Heat and Burn, a Chronoweaver banking Flux for Time Surges, a Plague Alchemist brewing Reagents into poison chains. 15-floor spire, event modals, campfires. More code, more bespoke systems, more juice. SWE-2 Max went with classic Slay-the-Spire archetypes — Warden (block/strength), Shade (poison/shivs), Stormcaller (charge bursts) — then poured the savings into content: 40% more enemies, 30% more cards, a twin-boss encounter, bosses with phase transitions at 66% and 33% HP. Three named acts. It did all that in a third of the code. ✅ Both hit every requirement: branching maps, elites, shops, rest sites, events, card upgrade/removal, gold, all four status effects, save/load, compendium, floating damage, screen shake. 🏁 VERDICT Argon went deeper — invented mechanics, denser systems, more polish per element. SWE-2 went broader — more content, less code, proven archetypes. 60% of the file size. 3x the content count. That's the efficiency story. Both shipped a real game in one file. The honest answer to "which is better" is: what do you value ? mechanical novelty, or content density per line of code? Also used Devin with @HyperFrames_ to create the side by side video below.
查看原帖