Implementation of the solution to the 100 prisoner problem.
Find a file
2025-12-14 00:52:10 +01:00
src init 2025-12-14 00:49:50 +01:00
.gitignore init 2025-12-14 00:49:50 +01:00
Cargo.lock init 2025-12-14 00:49:50 +01:00
Cargo.toml init 2025-12-14 00:49:50 +01:00
README.md added readme 2025-12-14 00:52:10 +01:00

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