@mtgoncurve/landlord
v2025.4.1
Published
Magic: The Gathering card draw and mulligan simulator
Readme
landlord

landlord is the simulation backend for https://mtgoncurve.com!
What
landlord is a Rust library that simulates the mulligan and card draw process in Magic: The Gathering in order to determine the probability to play cards on curve. The project uses wasm-pack, a tool for building, optimizing, and packaging Rust-generated WebAssembly.
Development
Run make all to see available development tasks.
Updating the scryfall database
make card-update
make buildDependencies
brew install rustup
rustup-initVerify rustc and cargo are available:
rustc --version
cargo --versionInstall wasm-pack:
brew install wasm-packUse with mtgoncurve.com locally
cd lib/pkg
yarn install
yarn linkIn your local copy of the mtgoncurve.com repo:
cd /path/to/mtgoncurve.com
yarn link "@mtgoncurve/landlord"and run the web app:
yarn
yarn run start