iflashlord / monty-hall-node-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monty Hall React Project

Monty Hall problem

The Monty Hall is a brain teaser, in the form of a probability puzzle, loosely based on the American television game show Let's Make a Deal and named after its original host, Monty Hall. The concept of the game is that the player sees three closed doors - behind one is a car, and behind the other two are goats. The game starts with the player getting to choose a door, without opening it. Then the presenter opens one of the two remaining doors (but never the one with the car) and shows that this door does not contain profit. The player is then given another choice to change the door. The question is whether the chances of winning increase if the player changes the door. Source: https://en.wikipedia.org/wiki/Monty_Hall_problem

So the task is:

Build an application that proves the paradox. The application should be able to simulate a given number of games and whether you change the door or not. The technical requirement for the solution is to build a react app with a backend of your choice. In the interface you should be able to enter a number of simulations and choose whether or not to change the door. Then be able to press a button that starts the simulation by calling backend that performs the requested number of simulated games. When backend answers then the results of the simulations should be printed. Testing should be included in the assignment.

Solution

Front-end: React, Redux

git (public): https://gitlab.com/iflashlord/monty-hall

build: https://fathomless-journey-54480.herokuapp.com

serve project: npm start

build a production: npm build

test project: npm test

documentation: npm doc

publish to heroku: npm heroku-publish

Backend: Express, Node.js

git (public): https://gitlab.com/iflashlord/monty-hall-node-api

build: https://infinite-cove-34882.herokuapp.com

start server: npm start

test project: npm test

documentation: npm doc

publish to heroku: npm heroku-publish

CI/CD: Heroku

Backend: https://infinite-cove-34882.herokuapp.com

Front-end: https://fathomless-journey-54480.herokuapp.com

Unit Test

command: npm test

Documentation

command: npm doc

About


Languages

Language:HTML 48.1%Language:CSS 33.2%Language:JavaScript 18.7%