r/coolgithubprojects • • 9d 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

23 comments sorted by

4

u/CortaCircuit 8d ago

I like it

1

u/huberkenobi 8d ago

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

3

u/Exciting_Active4857 8d ago

ai made*

2

u/huberkenobi 8d ago

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

2

u/MagicUpvote 8d 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?

2

u/huberkenobi 8d 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)

2

u/huberkenobi 8d 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 8d 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 8d 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 9d 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 8d ago

Cool! I would love to see it!

1

u/manueslapera 8d ago

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

1

u/huberkenobi 8d 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 😄

1

u/manueslapera 8d ago edited 7d ago

i dont mean it in a bad way, but for what i have seen lately, its becoming fairly trivial to port software from one platform to another. I wouldnt be surprised if you could port forge java engine into webasm.

BTW, i tried the docker compose on wsl2 and the performance is abysmal. To the point that im not even sure if the docker image contains malware.

1

u/huberkenobi 7d ago

No offence taken. Porting Forge to WebAssembly would be a fun experiment, but it's a huge Java codebase with its own AI, so I'd expect it to crawl in a browser tab.

On WSL2: the official image isn't published yet, so docker compose builds everything on your machine the first time (downloads Forge, compiles Java, builds the web app) and then indexes the card data. That's the CPU load you saw. It's also much slower if the folder lives on the Windows side (/mnt/c). On Windows the easy path is the installer from the releases page, no Docker needed. And everything is built from the Dockerfile in the repo, so you can read exactly what goes in.

2

u/Practical_Hippo6289 8d 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 8d ago

add it to the top of the slop pile

1

u/huberkenobi 8d ago

So much hate, but you all will use it 🤣

1

u/pisstopher_throbbin 8d ago

no one using this bro

1

u/huberkenobi 8d ago

You will love it!

-4

u/Accomplished-Oven480 9d ago

Correction: "i let my clanker..."

1

u/huberkenobi 9d 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.