1 个不稳定版本
0.1.0 | 2021 年 9 月 21 日 |
---|
#773 在 游戏 中
52KB
1K SLoC
NES 龙之轨迹(日版)密码库
CLI 使用
# decode password to game state
cargo run --release --example decode -- 'まるかつはやつはりせかいいちだつたのだよ'
# encode game state to password
cargo run --release --example encode -- examples/sample.json
# generate passwords by pattern (up to 10)
cargo run --release --example generate -- 'ゆうていみやおうきむこうほりいゆうじ??' 10
注意事项
generate()
函数由于动态规划而比朴素算法更快。但是,如果您的模式以 "???" 开头,可能需要一些时间。
依赖项
~1.1–1.9MB
~39K SLoC