Skip to content

AlanCowap/MontyHallProblem

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

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
And the latest blog post Monty Hall Proof – The Formula
Play my Monty Hall Game on your Android device -Monty Hall Game - and see for yourself while having fun!
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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages