Skip to content

The Monty Hall problem is a brain teaser, in the form of a probability puzzle, loosely based on the American television game show

Notifications You must be signed in to change notification settings

npkumar/monty-hall-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was bootstrapped with Create React App.

Material UI has been used for components.

Express is used for the backend.

Demo app can be found at Monty Hall Problem

Demo app server can be found at Monty Hall Problem Server CORS has been enabled on server for convenience.

Various Application Stages

Initial State Waiting for simulation results With simulation results
mhp_init mhp_loading mhp_result

Running on local

Ensure both the server and client are running as requried.

yarn start

Runs the client in the development mode.
Open http://localhost:3000 to view it in the browser.

yarn server

Runs the server in the development mode.
Open http://localhost:5000 to test.
Replace https://mhpnpk-server.herokuapp.com/simulate with /simulate in code if you need to test the server locally. Also remember to add proxy in package.json

"proxy": "http://localhost:5000",

yarn test

Runs the various tests in the interactive watch mode.

About

The Monty Hall problem is a brain teaser, in the form of a probability puzzle, loosely based on the American television game show

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published