r/coolgithubprojects • • 22h ago

I made an open-source Magic: The Gathering deck builder that explains its suggestions, then lets you play the deck against bots or friends

GitHub: https://github.com/hubertdungen/grimorio

Grimório suggests cards from card text, real tournament decks, EDHREC data and Commander Spellbook combos, and says why each one fits your deck. Then you play it against Forge bots (the open-source MTG rules engine) or against friends in online rooms. There are also tournaments, Draft and Sealed, and a 3D map of every card built from text embeddings. You can also watch bot only (Forge npcs) play with your decks and/or with meta decks.

Python standard library + SQLite on the server, React and three.js on the front end. Windows, Linux, Android and Docker. GPL-3.0, no account, no ads.

Downloads: https://github.com/hubertdungen/grimorio/releases/latest

31 Upvotes

21 comments sorted by

4

u/CortaCircuit 22h ago

I like it

1

u/huberkenobi 18h ago

That's really nice to know! Thank you. Tell me if you find any bug or feature to implement 🙌🏻

3

u/Exciting_Active4857 13h ago

ai made*

1

u/huberkenobi 11h ago

It just works. Accept it. There is no other tool like this, and open source

2

u/MagicUpvote 10h ago

Looks interesting. Would like to see the play in action (just quick UI handling) without having to download. Can I put my own art to the cards? What's kind of the main difference of this vs Neo Forge?

1

u/huberkenobi 59m ago

Yes I can make a video and publish it. And yes you can create alter arts, alter names, and also prepare them for proxy printing (with all sorts of advanced tools such as cutting lines types and options, bleeds, separation between cards, local upscaling, smart bleed extension or fill the bleeds with a single color, paging, and prepare the files with mainboard, sideboard, maybeboards, tokens, suggested cards for that deck, or none of them and prepare them smartly with other decks)

1

u/huberkenobi 50m ago

On Neo Forge: as far as I know it's a new interface for playing Forge, so the focus is the game itself, and it looks great. Grimório starts one step earlier, at the deck. It suggests cards and tells you why each one fits (the role it fills, the combo it completes, the gap in your curve), using EDHREC, real tournament decks and Commander Spellbook combos. Then you take that deck to the table: against Forge bots, against friends in online rooms or tournaments, or you let the bots play dozens of test games and read the report to see what to cut. Plus the proxy printing side I mentioned. So I'd say Neo Forge is a better way to play Forge, and Grimório is a deck workshop that uses Forge to put your deck to the test and to play them with friends/bots. They can live side by side.

2

u/Finalcreature 43m ago

I tried it a bit. Very cool concept and I hope you have plans to improve it with better animations, tooltips and other sounds and QoL enhancements that might one day surpass the official MTGA.

I don't care it was made by AI, but I give myself the privilege to elevate my expectations knowing that.

1

u/huberkenobi 39m ago

Thanks for trying it! Fair point on the polish. Animations, tooltips and sound are where a solo project shows its seams, but I work on it a bit every weekend, so it keeps getting better. It auto-updates btw, so you don't have to matter with checking for the updates manually

Small correction... it's AI-assisted, not made by AI. Me and my friends (as DL Forge team flag) design it, make the calls and test it with my friends every week. A high bar is fair either way.

If you remember a moment where a tooltip or feedback was missing, tell me and I'll look at it.

1

u/Hot_Chemical_2376 22h ago

I did something similar to backup some VS System card game deck i had in my history of a young misfits with no knowledge of where their cards are now, twenty year later. but much simpler. nice job

1

u/huberkenobi 18h ago

Cool! I would love to see it!

1

u/manueslapera 4h ago

since its ai generated, is it possible to make it entirely web based?

1

u/huberkenobi 55m ago

Good question. The interface already runs in your browser. The one part that can't live in a browser tab is Forge, the Java rules engine that runs the bots and enforces every rule, so there's a small server behind it. Set it up once on a home server and everyone opens Grimório from any browser, phone included. Guide here: https://github.com/hubertdungen/grimorio#your-own-linux-server-docker

As for "AI generated": funny, the AI wasn't there for the weekends of playtesting with my friends, the late nights chasing bugs, the endless rounds of "this card suggestion makes no sense, fix it, broadly", or the few hundred euros in subscriptions. Months of that, and now it's free for anyone to use. Must have been one hell of a prompt 😄

2

u/Practical_Hippo6289 16h ago

I built a GPT that would evaluate decks and it seemed to do a pretty good job of tweaking known designs and could evaluate individual cards pretty well. It was terrible at building something from scratch though. I probably could have made it better but I just didn't put any more time into it.

0

u/pisstopher_throbbin 12h ago

add it to the top of the slop pile

1

u/huberkenobi 11h ago

So much hate, but you all will use it 🤣

1

u/pisstopher_throbbin 11h ago

no one using this bro

1

u/huberkenobi 11h ago

You will love it!

-4

u/Accomplished-Oven480 22h ago

Correction: "i let my clanker..."

1

u/huberkenobi 22h ago

Fair enough, I used an AI coding assistant and I'm upfront about it: https://github.com/hubertdungen/grimorio/blob/main/AI-DECLARATION.md (copilot level). The design, the ideas, the decisions, the testing and the hundreds of games I play with friends in it are mine. Happy to hear what you'd change in the app itself.