Skip to content

mtgoncurve/landlord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

landlord   BUILD-img NPM-img MIT-img

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

MIT