Save this video free

Lecture 18: Monte Carlo Part 2

Professor Rosen · 1:11:23 · Watch on YouTube

Lecture 18: Monte Carlo Part 2 Watch on YouTube →

Overview

Professor Rosen connects Monte Carlo simulation to practical programming projects, first outlining options such as Love2D, Pygame, Godot, web apps, and Blender, then estimating a card-game win rate with 100,000 trials. The main technical demonstration uses uniformly random points in a square to estimate pi from the fraction inside a unit circle, followed by pseudocode for validating and pronouncing Hawaiian words with indexed parsing and vowel dictionaries.

Key takeaways

Chapters

0:00 Final Project Tracks: Games, Apps, and Portfolio Websites
6:00 Choosing a Game Engine: Pygame, Unreal, Unity, and Godot
12:00 Project Scope, Creative Work, and AI Disclosure
16:00 RimWorld Mods and an Adversarial Wordle-Style Game
22:00 A Nine-Card Grid Game with Seven Black and Two Red Cards
26:00 Representing the Card Grid and Simulating Win Rates
35:00 Deriving the Pi Estimate from Circle and Square Areas
40:00 Setting Turtle Coordinates for the Unit Circle
45:00 Sampling Uniform Random Coordinates in Python
51:00 Testing Circle Hits with the Distance Formula
58:00 Turtle Animation Speed and the Pi Approximation
1:00:00 Separating Hawaiian Word Validation from Pronunciation
1:05:00 Parsing Hawaiian Words with an Indexed While Loop
1:10:00 Mapping Hawaiian Vowels and Double Vowels to Pronunciation

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 All right. So, might as well since we're talking about games, I guess. Okay. >> So, for those of you So, let's just So, this is going to follow a lot of last um last lecture what I did, which is that we're going to go over um I'm going to talk a bit more about final project options. is I'm going to talk a bit more about um and then I'm going to talk a bit more about these kind of weird Monte Carlo games that we can uh play. Um so and I think we'll have an exercise to do in Runstone, but let's move on to that. So first off, if you go to your Canvas page and you're one of those people who are like, I have no idea what I need to do for this final

0:47 project. I have no idea what I want to do. It's all too overwhelming. I don't know what choices to make, right? Um, I used to have these things as extra credit assignments. They are not extra credit assignments anymore, even even though they kind of sort of have like something associated with them with Dropboxes. That's just simply so I could uh propose them to you. So, I had all these tracks overview, right? Module 11. They're found under module 11. Um, and if you go down to these tracks, uh, like these are completely optional things to check out. Uh, basically they go over how uh, they go over like how you could build

1:35 something from scratch. They have videos on how to do it. So for if you're interested in learning uh game programming for instance, this game track teaches you how to build uh Pong and then Mario using the uh Lua Love 2D engine which was used for Bellatro. Um

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Professor Rosen.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.