Implementation of the solution to the 100 prisoner problem.
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
hundred_prisoners
Implementation of the solution to the 100 prisoner problem.
https://en.wikipedia.org/wiki/100_prisoners_problem
cargo test better -- --nocapture
# Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s
# Running unittests src/lib.rs (target/debug/deps/hundred_prisoners-abe60be57d7127c3)
#
# running 1 test
# [src/lib.rs:31:5] totals_circ = 335
# [src/lib.rs:31:5] totals_rand = 0
# test circ_is_better_than_rand ... ok
#
# test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 2 filtered out; finished in 3.93s