Play the Monty Hall game

25 points by cyberia


eminence32

Since the idea is to see (experimentally) that switching doors has a more winning result, it might be nice to see an automatically calculated win percentage for each strategy (sticking vs switching)

(Btw, I quite like the ascii-art style)

mdaniel

it was so overwhelmingly aligned to the "switching door" hypothesis that I thought about asking to see some evidence on-screen that it wasn't rigged, but index.js does in fact contain two const prizeDoorIdx = Math.floor(Math.random() * 3); and const toOpenIdx = Math.floor(Math.random() * availableLosingDoors.length);