{"id":18135482,"url":"https://github.com/jaredcat/100doors","last_synced_at":"2025-04-06T16:44:29.831Z","repository":{"id":27810669,"uuid":"31300114","full_name":"jaredcat/100Doors","owner":"jaredcat","description":"Monty Hall simulator","archived":false,"fork":false,"pushed_at":"2023-10-30T21:05:52.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T11:42:02.244Z","etag":null,"topics":["100-prisoners","100-prisoners-problem","100prisoners","100prisonersproblem","hacktoberfest","math","mathmatical-paradox","monthy-hall-problem","monty-hall","monty-hall-simulator","paradox","paradoxes","simulation","veritasium"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredcat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-02-25T06:16:52.000Z","updated_at":"2023-10-30T05:33:15.000Z","dependencies_parsed_at":"2024-06-17T23:08:44.299Z","dependency_job_id":"13ebac62-ef74-406b-afba-53f554ea36a9","html_url":"https://github.com/jaredcat/100Doors","commit_stats":null,"previous_names":["jaredcat/100doors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2F100Doors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2F100Doors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2F100Doors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredcat%2F100Doors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredcat","download_url":"https://codeload.github.com/jaredcat/100Doors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517863,"owners_count":20951714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["100-prisoners","100-prisoners-problem","100prisoners","100prisonersproblem","hacktoberfest","math","mathmatical-paradox","monthy-hall-problem","monty-hall","monty-hall-simulator","paradox","paradoxes","simulation","veritasium"],"created_at":"2024-11-01T14:07:46.627Z","updated_at":"2025-04-06T16:44:29.813Z","avatar_url":"https://github.com/jaredcat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 100Doors\n\n## Monty Hall Simulator\n\nThere was a post about the Monty Hall problem and how it stumped the mathmatics world for years. After explaining it, people in the comments still firmly belived that the odds should be 50%. So, I wanted to see how easy I could build this\nin python just to prove a point to myself and see the win rate with some big data.\nA few hours later and I had a pretty robust simulator that confirms that you have n-1/n odds of winning when you switch\ninstead of staying with your initial guess!\n\nThe name comes from the concept of extrapolating the initial scenario to a large number to make it easier to understand\nwhy odds shift to the unopened door and not equally between the two remaining closed doors.\n\n### Instructions\n\nRequires Python (3.4 if you run into issues on lower versions)\nFollow on screen instructions\n\n### Features\n\nThe script features two play modes:\nAuto play mode: If set to y then the game will play any amount of times with any amount of doors and either switch or stay\nevery time while randomly selecting a door. (Proves odds favor switching with big data)\nPlayer mode: Allows the player to simulate being on a game show with as many doors as they want.\nIn player mode, a player gets to pick which door they want and a winning one is randomly selected from the pool of\ndoors.\nThen the player gets to pick whether they would like to switch or stay when the doors are opened.\nThe players win rate and percentage is displayed and carried with the player till they quit.\n\n## 100 Prisoners Simulator\n\nTODO\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredcat%2F100doors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredcat%2F100doors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredcat%2F100doors/lists"}