It's the Monty Hall Problem! In JavaScript! With p5.js! Yes, you really double your chances of winning by switching doors. I hope to convince you of this in this video! editor.p5js.org/codingtrain/s...
p5.js Web Editor Sketches:
🕹️ Monty Hall: editor.p5js.org/codingtrain/s...
🕹️ Monty Hall (variable speed and doors): editor.p5js.org/codingtrain/s...
GitHub Repo and Demo:
💻 Repo: github.com/CodingTrain/Monty-...
💻 Demo: codingtrain.github.io/Monty-H...
🎥 Previous video: • Coding Challenge 169: ...
🎥 All videos: • Coding Challenges
Links discussed in this video:
🔗 Game Show Problem, Ask Marilyn, Parade Magazine 1990: web.archive.org/web/201301211...
🔗 Document Object Model (DOM): developer.mozilla.org/en-US/d...
🔗 CSS Basics: developer.mozilla.org/en-US/d...
Other videos mentioned in this video:
🎥 The Basics of CSS - p5.js Tutorial: • 8.7: The Basics of CSS...
🎥 8.11 - Callbacks on Multiple DOM Elements - p5.js Tutorial • 8.11: Callbacks on Mul...
🎥 Local Storage in JavaScript with p5.js • Local Storage in JavaS...
Timestamps:
0:00 What is the Monty Hall Problem?
1:50 Solution for Monty Hall Problem!
6:55 Starting the Code
8:53 Centering a DIV
10:22 Callback Events
15:40 Refactoring into Functions
23:11 Adding Stats
27:04 Playing the game!
28:21 Bayes Theorem
31:45 Goodbye!
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/Guides/com...
🚩 Suggest Topics: github.com/CodingTrain/Rainbo...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzitem.infojoin
🛒 Store: standard.tv/codingtrain
📚 Books: www.amazon.com/shop/thecoding...
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
Editing by Mathieu Blanchette
Animations by Jason Heglund
Images licensed by Getty Images
Music from Epidemic Sound
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/websit...
Негізгі бет Coding Challenge 170: The Monty Hall Problem
Пікірлер: 452