Coding Challenge 170: The Monty Hall Problem

Описание к видео Coding Challenge 170: The Monty Hall Problem

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! https://editor.p5js.org/codingtrain/s...

p5.js Web Editor Sketches:
🕹️ Monty Hall: https://editor.p5js.org/codingtrain/s...
🕹️ Monty Hall (variable speed and doors): https://editor.p5js.org/codingtrain/s...

GitHub Repo and Demo:
💻 Repo: https://github.com/CodingTrain/Monty-...
💻 Demo: https://codingtrain.github.io/Monty-H...

🎥 Previous video:    • Coding Challenge 169: Pi in the Sky Game  
🎥 All videos:    • Coding Challenges  

Links discussed in this video:
🔗 Game Show Problem, Ask Marilyn, Parade Magazine 1990: https://web.archive.org/web/201301211...
🔗 Document Object Model (DOM): https://developer.mozilla.org/en-US/d...
🔗 CSS Basics: https://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 - p5.js Tutorial  
🎥 8.11 - Callbacks on Multiple DOM Elements - p5.js Tutorial    • 8.11: Callbacks on Multiple DOM Eleme...  
🎥 Local Storage in JavaScript with p5.js    • Local Storage in JavaScript with p5.js  

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: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/Guides/com...
🚩 Suggest Topics: https://github.com/CodingTrain/Rainbo...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
📚 Books: https://www.amazon.com/shop/thecoding...
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org

📄 Code of Conduct: https://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: https://github.com/CodingTrain/websit...

Комментарии

Информация по комментариям в разработке