Skip to content

PattMayne/monty_hall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monty_hall

Play the classic logic problem in the terminal.

This is a project I did to learn the basics of Rust. The Monty Hall problem is a logic problem. Should the player switch their selection or not? See below for more details.

To play, open a terminal in the root folder, build and run the project (cargo run).

  • You will be presented with three "doors." There is a prize behind one.
  • You to pick one door.
  • At least one of the other two must be empty (non-prize).
  • The game randomly opens one non-prize door.
  • You will be prompted to either keep your selection or choose the other non-opened door.
  • The game will show final results.

So is it wise to switch doors or keep your selection? Or is it 50/50?

About

Play the classic logic problem in the terminal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages