https://github.com/mtgoncurve/landlord

Magic: The Gathering mulligan and card draw simulator

https://github.com/mtgoncurve/landlord

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.9%) to scientific vocabulary

Keywords

magic magic-the-gathering mtg mtga rust simulation wasm
Last synced: 6 months ago · JSON representation

Repository

Magic: The Gathering mulligan and card draw simulator

Basic Info
  • Host: GitHub
  • Owner: mtgoncurve
  • License: mit
  • Language: Rust
  • Default Branch: master
  • Homepage: https://mtgoncurve.com
  • Size: 44.6 MB
Statistics
  • Stars: 34
  • Watchers: 2
  • Forks: 10
  • Open Issues: 6
  • Releases: 35
Topics
magic magic-the-gathering mtg mtga rust simulation wasm
Created about 6 years ago · Last pushed 11 months ago
Metadata Files
Readme License

README.md

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

Owner

  • Name: MTG On Curve
  • Login: mtgoncurve
  • Kind: organization

GitHub Events

Total
  • Release event: 3
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 4
  • Pull request event: 5
  • Fork event: 1
  • Create event: 4
Last Year
  • Release event: 3
  • Watch event: 2
  • Delete event: 1
  • Issue comment event: 1
  • Push event: 4
  • Pull request event: 5
  • Fork event: 1
  • Create event: 4

Committers

Last synced: almost 3 years ago

All Time
  • Total Commits: 756
  • Total Committers: 7
  • Avg Commits per committer: 108.0
  • Development Distribution Score (DDS): 0.128
Past Year
  • Commits: 157
  • Committers: 5
  • Avg Commits per committer: 31.4
  • Development Distribution Score (DDS): 0.045
Top Committers
Name Email Commits
Card Update Bot b****t@m****m 659
Justin Shrake j****e@g****m 79
Justin Shrake j****e@u****m 7
Justin Shrake 3****e@u****m 5
Jared Shillingburg j****3@g****m 3
rstad 3****d@u****m 2
Martin Cuchet m****t@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 18
  • Total pull requests: 44
  • Average time to close issues: 16 days
  • Average time to close pull requests: 3 days
  • Total issue authors: 10
  • Total pull request authors: 6
  • Average comments per issue: 0.33
  • Average comments per pull request: 0.3
  • Merged pull requests: 40
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 6
  • Average time to close issues: N/A
  • Average time to close pull requests: 5 days
  • Issue authors: 1
  • Pull request authors: 3
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.5
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • jshrake (9)
  • Spigushe (1)
  • dpdearing (1)
  • aloisdg (1)
  • msg555 (1)
  • golyalab (1)
  • lucafmarques (1)
  • rat128 (1)
  • hcoona (1)
  • OrenRahat (1)
Pull Request Authors
  • jshrake (37)
  • rstad (7)
  • bakert (2)
  • jshill103 (2)
  • americanhanko (2)
  • Spigushe (1)
Top Labels
Issue Labels
bug (3)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • cargo 1,807 total
    • npm 2 last-month
  • Total dependent packages: 1
    (may contain duplicates)
  • Total dependent repositories: 1
    (may contain duplicates)
  • Total versions: 44
  • Total maintainers: 2
npmjs.org: @mtgoncurve/landlord

Magic: The Gathering card draw and mulligan simulator

  • Versions: 43
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 2 Last month
Rankings
Forks count: 6.8%
Stargazers count: 7.7%
Dependent repos count: 10.4%
Average: 11.9%
Downloads: 13.3%
Dependent packages count: 21.1%
Maintainers (1)
Last synced: 6 months ago
crates.io: landlord

Magic: The Gathering card draw and mulligan simulator

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 1,807 Total
Rankings
Forks count: 16.8%
Stargazers count: 21.4%
Dependent repos count: 29.3%
Dependent packages count: 33.8%
Average: 34.4%
Downloads: 70.4%
Maintainers (1)
Last synced: 6 months ago

Dependencies

Cargo.lock cargo
  • adler32 1.0.4
  • aho-corasick 0.7.10
  • atty 0.2.14
  • autocfg 1.0.0
  • bincode 1.2.1
  • bitflags 1.2.1
  • bstr 0.2.12
  • bumpalo 3.2.1
  • byteorder 1.3.4
  • cast 0.2.3
  • cfg-if 0.1.10
  • chrono 0.4.11
  • clap 2.33.0
  • crc32fast 1.2.0
  • criterion 0.3.1
  • criterion-plot 0.4.1
  • crossbeam-deque 0.7.3
  • crossbeam-epoch 0.8.2
  • crossbeam-queue 0.2.1
  • crossbeam-utils 0.7.2
  • csv 1.1.3
  • csv-core 0.1.10
  • either 1.5.3
  • env_logger 0.7.1
  • flate2 1.0.14
  • getrandom 0.1.14
  • hermit-abi 0.1.10
  • humantime 1.3.0
  • itertools 0.8.2
  • itoa 0.4.5
  • js-sys 0.3.37
  • lazy_static 1.4.0
  • libc 0.2.68
  • log 0.4.8
  • maybe-uninit 2.0.0
  • memchr 2.3.3
  • memoffset 0.5.4
  • miniz_oxide 0.3.6
  • num-integer 0.1.42
  • num-traits 0.2.11
  • num_cpus 1.12.0
  • oorandom 11.1.0
  • plotters 0.2.12
  • ppv-lite86 0.2.6
  • proc-macro2 1.0.10
  • quick-error 1.2.3
  • quote 1.0.3
  • rand 0.7.3
  • rand_chacha 0.2.2
  • rand_core 0.5.1
  • rand_hc 0.2.0
  • rand_pcg 0.2.1
  • rayon 1.3.0
  • rayon-core 1.7.0
  • redox_syscall 0.1.56
  • regex 1.3.6
  • regex-automata 0.1.9
  • regex-syntax 0.6.17
  • rustc_version 0.2.3
  • ryu 1.0.3
  • same-file 1.0.6
  • scopeguard 1.1.0
  • semver 0.9.0
  • semver-parser 0.7.0
  • serde 1.0.106
  • serde_derive 1.0.106
  • serde_json 1.0.51
  • syn 1.0.17
  • termcolor 1.1.0
  • textwrap 0.11.0
  • thread_local 1.0.1
  • time 0.1.42
  • tinytemplate 1.0.3
  • unicode-width 0.1.7
  • unicode-xid 0.2.0
  • walkdir 2.3.1
  • wasi 0.9.0+wasi-snapshot-preview1
  • wasm-bindgen 0.2.60
  • wasm-bindgen-backend 0.2.60
  • wasm-bindgen-macro 0.2.60
  • wasm-bindgen-macro-support 0.2.60
  • wasm-bindgen-shared 0.2.60
  • web-sys 0.3.37
  • winapi 0.3.8
  • winapi-i686-pc-windows-gnu 0.4.0
  • winapi-util 0.1.4
  • winapi-x86_64-pc-windows-gnu 0.4.0
lib/Cargo.toml cargo
  • criterion 0.3 development
  • bincode 1
  • chrono 0.4
  • flate2 1
  • lazy_static 1.2.0
  • log 0.4
  • rand 0.7
  • regex 1
  • serde 1
  • serde_derive 1
  • serde_json 1
  • wasm-bindgen ^0.2
.github/workflows/build.yml actions
  • actions/checkout v2 composite
.github/workflows/deploy.yml actions
  • actions/checkout v2 composite
  • actions/setup-node v1 composite