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 Play a Computer Game

The min max algorithm is a common AI tool for computer games. Python can just basically see the entire future, which means you really can't beat the chicken. The article caps it off with writing a nice little wrapper that takes command line arguments to determine whether you're playing against another person or the random computer. And like I said, there's no option for chickens, but whatever.

Play episode from 17:43
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