TCG Deck Lab is a fun side project that I developed from scratch as a way to get more comfortable with Python and React in a way that appeals to my love for TCGs. The simulator currently only supports two games right now: One Piece TCG and Pockemon TCG Pocket.
The most useful design choice was keeping the simulation engine game-agnostic: cards carry tags, each game plugs in its own rules class, and pytest checks the Monte Carlo results against exact hypergeometric math, so adding a new game only required a new rules class and a game picker in the UI.
From there I added a PostgreSQL layer with SQLAlchemy and Alembic migrations, so decks and simulation history persist, and repeat queries return cached results instead of re-running.
The project uses React, TypeScript, Vite, Zustand, and Recharts on the frontend, Python with FastAPI, Pydantic, and NumPy/SciPy on the backend, and Docker for local Postgres, with deploys to Vercel, Render, and Neon.
I still plan on adding an LLM-powered decklist importer with an evaluation harness, along with support for more TCGs in the future.
Check if out here: https://tcg-deck-builder-wine.vercel.app/