1 unstable release

0.1.0 Sep 21, 2021

#815 in Games

GPL-3.0-only

52KB
1K SLoC

NES Dragon Quest (J) password library

CLI usage

# 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

Notes

generate() function is faster than naive algorithm thanks to dynamic programming. But, if your pattern starts with "??", it might take some time.

Dependencies

~1–1.8MB
~38K SLoC