1 unstable release
| 0.1.1 | Feb 22, 2020 |
|---|
#383 in Simulation
1.5MB
5K
SLoC
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 build
Dependencies
brew install rustup
rustup-init
Verify rustc and cargo are available:
rustc --version
cargo --version
Install wasm-pack:
brew install wasm-pack
Use with mtgoncurve.com locally
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
License
lib.rs:
Magic: The Gathering Simulation Library
landlord is a library that simulates the card draw and mulligan process in Magic: The Gathering in order to determine the probability to play cards on curve. It can theoretically be used be used for determining the probability of other events. It is currently used by https://mtgoncurve.com.
Dependencies
~5–7.5MB
~132K SLoC