This program is a simple simulation of the Monty Hall problem.
cargo run --release -- <num_of_doors> <num_of_games> <switch_choice>
where the meaning of the parameters are the following:
num_of_doors
: the number of doors in the simulated game.num_of_games
: number of the simulated games.switch_choice
: eithert
(true) orf
(false) to determine whether the user switches his choice or not.
This is my first Rust application which is more complex than the Guessing game in the Rust tutorial. I just heard about the Monty Hall problem and I really would like to try out, so I created this little program to simulate millions of games in a few seconds.