The Real Python Podcast cover image

Creating Tic-Tac-Toe With an AI Player & Shortcuts for Python Decorators

The Real Python Podcast

00:00

How to Build a Game Engine for Tic-Tac-Toe

The article outlines project structure, explains the design decisions behind it. And then second, it does a little bit of introductory AI algorithm stuff. This is a way to get your computer to look into all possible futures within the context of tic-tac-toe and choose the move that will have the best outcome for it. By the time you're done, you'll have touched a lot of modules. You'll need some familiarity with object oriented coding, data classes, reg-exes, and recursion.

Play episode from 14:47
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app