DealForge autonomously sources, scores, and writes investment memos on venture deals. Stop manually hunting.

1,180+ deals tracked  ·  22 AI investment memos  ·  Updated daily

← Back to leaderboard

A (de)compiler and parser/engine for custom Magic

Show HN: A (de)compiler and parser/engine for custom Magic: The Gathering cards

34 AI Score
Show_hn other Added May 3, 2026

Details

Sector
other
Total Funding
$0
Last Round
$0

About

Hey HN! I&#x27;ve been working on this for the past few months and I think it&#x27;s at the point where I&#x27;m ready for some user feedback.<p>It&#x27;s a WASM engine attempting to accurately model all of MTG&#x27;s rules and cards. AFAIK, this is the first MTG engine which tries to accomplish this by live compiling the entire card collection at runtime, instead of coding each individual card.<p>You can create your own unique cards to playtest against (&quot;Compile Card&quot; button is what you&#x27;re looking for), as long as they follow the engine&#x27;s supported grammar (which I&#x27;m working on so that it fully supports Magic&#x27;s ~30k legally playable cards, currently at 23k partially&#x2F;17k fully supported).<p>It also supports 4-way P2P multiplayer lobbies via PeerJS, though I haven&#x27;t had enough time to test everything network related so there may be some hidden bugs there!<p>My dev process was heavily influenced by the recent surge in agentic coding, but I think I&#x27;ve settled on an architecture which successfully manages to avoid slop creeping in:<p>Each card from its original, normalized oracle text into a CardDefinition struct which contains every single behavior for that particular card. By the time this card definition is compiled, we no longer have access to the original oracle text.<p>Each effect in the card&#x27;s compiled definition can be decompiled into human readable text, after which a series of normalization steps based on the AST structure of the card&#x27;s compilation and a post-pass to cleanup awkward wording is applied. The resulting compiled oracle text is compared against the original card&#x27;s using vector embeddings, which gives us a semantic similarity score.<p>The entire purpose of this development workflow is making it obvious to the AI which cards are working correctly and which ones still need better support, without having to rely on behavioral tests for every single card. It took me some time until I finally managed to get the architecture to the point where the AI doesn&#x27;t cheat its way into improving the card coverage, but the whole experience has been a fantastic way of getting used to this new way of coding and I&#x27;m excited to see how the future of our profession looks like in a few years.<p>I&#x27;m looking for any kind of feedback, both UI&#x2F;UX and engine related, so please share your thoughts!

AI Score Reasoning

The project showcases impressive technical depth in using WASM and AI-driven verification for complex rule engines, but it is currently a hobbyist tool for a specific IP. The primary obstacles are the extreme legal risks associated with Magic: The Gathering's intellectual property and the lack of a clear path to venture-scale monetization.

Source

Show_hn — View original →