Skip to content

Simulation of http://en.wikipedia.org/wiki/Two_envelopes_problem for the version where you get to inspect the contents of the envelope before deciding whether to switch, in N languages.

License

Notifications You must be signed in to change notification settings

dfings/two-envelopes-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

two-envelopes-problem

Simulation of http://en.wikipedia.org/wiki/Two_envelopes_problem

This is mostly a vehicle for writing simple programs in many different languages, getting them to execute, and comparing implementations.

This problem is a bit more involved than "Hello World" as it uses branching, looping, randomness, functions, and printing.

More detailed cross-language programs in fewer languages can be found at https://github.com/dfings/project-euler.

About

Simulation of http://en.wikipedia.org/wiki/Two_envelopes_problem for the version where you get to inspect the contents of the envelope before deciding whether to switch, in N languages.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published