Coding an Unbeatable Tic Tac Toe AI Using Python and the Minimax Algorithm

Published: 20 January 2022
on channel: Coding Spot
61,235
1.2k

In this tutorial I will show how to code an unbeatable AI to play against in Tic Tac Toe using object oriented programming, the minimax algorithm (game theory), Python and its Pygame module.

LINKS:
😺 GitHub Repo: https://github.com/AlejoG10/python-ti...
Classic Tic tac toe Tutorial:    • Tic Tac Toe Using Python and Pygame (Part ...  
Windows Setup:    • How to Install Python + PIP + Sublime Text...  
Mac Setup:    • How to Install Python + PIP + Sublime Text...  

FOLLOW FOR MORE:
💥 GITHUB: https://github.com/AlejoG10
💥 INSTAGRAM:   / coding_sp0t  

⏱ TIMESTAMPS ⏱
00:00 Introduction
03:49 Screen & Background
17:43 Console Board
31:06 Drawing Figures
43:46 Board Functions
59:38 Minimax Explanation
1:13:21 Random AI
1:22:49 Minimax Function
1:40:17 Keyboard Events
1:49:40 Fix Bug
1:54:10 Show Wins
2:04:07 End


On this page of the site you can watch the video online Coding an Unbeatable Tic Tac Toe AI Using Python and the Minimax Algorithm with a duration of hours minute second in good quality, which was uploaded by the user Coding Spot 20 January 2022, share the link with friends and acquaintances, this video has already been watched 61,235 times on youtube and it was liked by 1.2 thousand viewers. Enjoy your viewing!