Crates.io | dq1-password |
lib.rs | dq1-password |
version | 0.1.0 |
source | src |
created_at | 2021-09-21 14:57:04.560199 |
updated_at | 2021-09-21 14:57:04.560199 |
description | NES Dragon Quest (J) password library |
homepage | https://github.com/taotao54321/dq1-password |
repository | https://github.com/taotao54321/dq1-password |
max_upload_size | |
id | 454452 |
size | 100,047 |
# 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()
function is faster than naive algorithm thanks to dynamic programming.
But, if your pattern starts with "??", it might take some time.