Skip to content

guilherme-vp/monty-hall-in-a-nutshell

Repository files navigation

Monty Hall In A Nutshell

This is a Next.js project intent to do a simulation of the famous Math problem of Monty Hall.

Production Application

You can check the deployed application in: https://monty-hall-in-a-nutshell.vercel.app.

Where is the problem?

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.

Getting Started

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.