wasi
This application simulates many sessions of 100 Prisoners Riddle
Default strategy should return with 31% success rate with the steps of,
This is a strip down port of a Go version I created for I could experiment with Rust.
Run cargo build --release
to build
100 Prisoners Riddle Simulator
USAGE:
prisoners_rusty_riddle [OPTIONS]
OPTIONS:
-h, --help Print help information
-n, --number-of-sessions <NUMBER_OF_SESSIONS> Number of sessions to run [default: 10000000]
-V, --version Print version information
Using configuration conditional checks, this Application can be built for wasm32-wasi
and will remove rayon dependency and related code.
To build for wasm32-wasi
,
rustup target add wasm32-wasi
to add the targetcargo build --release --target=wasm32-wasi
wasmer target/wasm32-wasi/release/prisoners_rusty_riddle.wasm -- -n 1000000