CrashCourse · @crashcourse

Let's make an AI that destroys video games: Crash Course AI #13

Uploaded June 7, 2020 · Length 13:26

Let's make an AI that destroys video games: Crash Course AI #13

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.

  1. 0:01

    Jabril: John Green Bot are you serious?!

  2. 0:03

    I made this game and you beat my high score?

  3. 0:08

    John-Green-bot: Pizza!

  4. 0:11

    Jabril: So John Green Bot is pretty good at Pizza Jump, but what about this new game we made, TrashBlaster?

  5. 0:24

    John-Green-bot: Hey, that’s me!

  6. 0:26

    Jabril:Yeah, let's see watch you've got.

  7. 0:37

    John-Green-bot: That’s not fair, Jabril!!

  8. 0:39

    Jabril: It's okay John Green Bot we've got you covered.

  9. 0:41

    Today we’re gonna design and build an AI program to help you play this game like a pro.

  10. 0:46

    INTRO

  11. 0:55

    Hey, I’m Jabril and welcome to Crash Course AI!

  12. 0:59

    Last time, we talked about some of the ways that AI systems learn to play games.

  13. 1:02

    I’ve been playing video games for as long as I can remember.

  14. 1:05

    They’re fun, challenging, and tell interesting stories where the player gets to jump on goombas

  15. 1:09

    or build cities or cross the road or flap a bird.

  16. 1:13

    But games are also a great way to test AI techniques because they usually involve simpler

  17. 1:17

    worlds than the one we live in.

  18. 1:18

    Plus, games involve things that humans are often pretty good at like strategy, planning,

  19. 1:23

    coordination, deception, reflexes, and intuition.

  20. 1:27

    Recently, AIs have become good at some tough games, like Go or Starcraft II.

  21. 1:32

    So our goal today is to build an AI to play a video game that our writing team and friends

  22. 1:36

    at Thought Cafe designed called TrashBlaster!

  23. 1:39

    The player’s goal in TrashBlaster is to swim through the ocean as a little virtual

  24. 1:43

    John-Green-bot, and destroy pieces of trash.

  25. 1:46

    But we have to be careful, because if John-Green-bot touches a piece of trash, then he loses and

  26. 1:51

    the game restarts.

  27. 1:52

    Like in previous labs, we’ll be writing all of our code using a language called Python

  28. 1:57

    in a tool called Google Colaboratory.

  29. 1:59

    And as you watch this video, you can follow along with the code in your browser from the