CrashCourse · @crashcourse
Let's make an AI that destroys video games: Crash Course AI #13
Uploaded June 7, 2020 · Length 13:26
Summary
Learn to build a video game AI using Python, neural networks, and genetic algorithms in this Crash Course AI episode.
- build game ai
- python game development
- neural network ai
- genetic algorithm ai
- reinforcement learning games
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:01
Jabril: John Green Bot are you serious?!
- 0:03
I made this game and you beat my high score?
- 0:08
John-Green-bot: Pizza!
- 0:11
Jabril: So John Green Bot is pretty good at Pizza Jump, but what about this new game we made, TrashBlaster?
- 0:24
John-Green-bot: Hey, that’s me!
- 0:26
Jabril:Yeah, let's see watch you've got.
- 0:37
John-Green-bot: That’s not fair, Jabril!!
- 0:39
Jabril: It's okay John Green Bot we've got you covered.
- 0:41
Today we’re gonna design and build an AI program to help you play this game like a pro.
- 0:46
INTRO
- 0:55
Hey, I’m Jabril and welcome to Crash Course AI!
- 0:59
Last time, we talked about some of the ways that AI systems learn to play games.
- 1:02
I’ve been playing video games for as long as I can remember.
- 1:05
They’re fun, challenging, and tell interesting stories where the player gets to jump on goombas
- 1:09
or build cities or cross the road or flap a bird.
- 1:13
But games are also a great way to test AI techniques because they usually involve simpler
- 1:17
worlds than the one we live in.
- 1:18
Plus, games involve things that humans are often pretty good at like strategy, planning,
- 1:23
coordination, deception, reflexes, and intuition.
- 1:27
Recently, AIs have become good at some tough games, like Go or Starcraft II.
- 1:32
So our goal today is to build an AI to play a video game that our writing team and friends
- 1:36
at Thought Cafe designed called TrashBlaster!
- 1:39
The player’s goal in TrashBlaster is to swim through the ocean as a little virtual
- 1:43
John-Green-bot, and destroy pieces of trash.
- 1:46
But we have to be careful, because if John-Green-bot touches a piece of trash, then he loses and
- 1:51
the game restarts.
- 1:52
Like in previous labs, we’ll be writing all of our code using a language called Python
- 1:57
in a tool called Google Colaboratory.
- 1:59
And as you watch this video, you can follow along with the code in your browser from the


