3 个版本
0.1.2 | 2019年2月16日 |
---|---|
0.1.1 | 2019年1月10日 |
0.1.0 | 2019年1月10日 |
#22 in #hand
8KB
119 代码行(不含注释)
steam-shovel - 魔法:集换式卡牌游戏翻开牌辅助工具
steam-shovel
根据你的牌库中土地牌的总数(假设牌库为60张牌)和你的手牌大小,计算你手中获得一定数量土地牌的概率。
安装
假设你已经安装了 Rust,只需运行 cargo install steam-shovel
。
示例输出
$steam-shovel --手牌大小 7 --土地牌数量 24 -计数 3,4
chance of 3 lands in a 7 card hand from a deck with 24 lands: 30.870%
chance of 4 lands in a 7 card hand from a deck with 24 lands: 19.645%
----------------------------------------------------------------------
chance of 3 or 4 lands in a 7 card hand from a deck with 24 lands: 50.515%
$steam-shovel -s 6 -l 20 -call
chance of 0 lands in a 6 card hand from a deck with 20 lands: 7.667%
chance of 1 lands in a 6 card hand from a deck with 20 lands: 26.287%
chance of 2 lands in a 6 card hand from a deck with 20 lands: 34.684%
chance of 3 lands in a 6 card hand from a deck with 20 lands: 22.498%
chance of 4 lands in a 6 card hand from a deck with 20 lands: 7.549%
chance of 5 lands in a 6 card hand from a deck with 20 lands: 1.239%
chance of 6 lands in a 6 card hand from a deck with 20 lands: 0.077%
----------------------------------------------------------------------
chance of 0, 1, 2, 3, 4, 5, or 6 lands in a 6 card hand from a deck with 20 lands: 100.000%
用法
steam-shovel 0.1.0
MTG mulligan helper
USAGE:
steam-shovel [OPTIONS] --counts <counts> --num-lands <num_lands>
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
-c, --counts <counts>
The number of lands in the hand to print the percentages for.
May be either a comma-separated list of integers or the word 'all' (e.g. '1', '2,3,4', 'all').
-s, --hand-size <hand_size>
The size of the hand being drawn.
-l, --num-lands <num_lands>
The number of lands in the deck.
依赖
~3.5MB
~61K 代码行数