landlord is the simulation backend for https://mtgoncurve.com!
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.
Run make all
to see available development tasks.
make card-update
make build
brew install rustup
rustup-init
Verify rustc
and cargo
are available:
rustc --version
cargo --version
Install wasm-pack
:
brew install wasm-pack
cd lib/pkg
yarn install
yarn link
In 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