This is a Next.js project intent to do a simulation of the famous Math problem of Monty Hall.
You can check the deployed application in: https://monty-hall-in-a-nutshell.vercel.app.
You can run the simulation of the game in the website or by calling the function Monty Hall once, which will return the result if the player won or not.
If you want to run the game several times and analyze the results losses/wins and win rates, you can run the playground runner function.
First, install the dependencies by running:
yarn install
Then, run the development server with:
yarn dev
Open http://localhost:3000 with your browser to see the result.