Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

mtgoncurve/landlord

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

782 Commits
782 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.