Coding Tic Tac Toe in Javascript: Part 2 Min-Max AI

Channel:
Subscribers:
254,000
Published on ● Video Link: https://www.youtube.com/watch?v=x_Je9i3aKNk



Duration: 14:16
13,198 views
166


Hey coders,

In part two of this tic tac toe tutorial, we will cover how to implement the min-max algorithm for AI. Before, we used a very basic AI which picked the first open space, but min-max allows the AI to actually look ahead at the best possible scenarios in order to maximize their chance of winning, and minimize your chance of winning.

Thanks for watching!







Tags:
min-max
minmax
tic-tac-toe
tic tac toe
programming
software
game development
game theory
javascript
coding
AI
artificial intelligence