No description, website, or topics provided.
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
MontyHallProblem
README.md

README.md

MontyHallProblem

Here I provide a simulation of the Monty Hall Problem.
This code relates to my blog post Monty Hall Problem – Can You Solve This Maths Puzzle?
And the follow-on blog post Monty Hall Solution - Advanced
Happy coding
Alan

You can use run MontyHallProblem in eclipse (this repo is an eclipse project).


You can put the MontyHallApp.java file in a directory and run the following command line in DOS
md .\classes
javac -d classes MontyHallApp.java
java -cp .\classes com.alancowap.maths.montyhallproblem.MontyHallApp
rd /s/q .\classes


*nix command line (not tested, be in a safe directory)
cd ~
mkdir ./classes
javac -d classes MontyHallApp.java
java -cp ./classes com.alancowap.maths.montyhallproblem.MontyHallApp
rm -rf ./classes