Coding Challenge 154: Minimax Algorithm for Tic Tac Toe
In this challenge I take the Tic Tac Toe game from coding challenge #149 and add an AI opponent for a human player by implenenting the Minimax algorithm. Code: https://thecodingtrain.com/challenges... š¹ļø p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s... š„ Previous video: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #153:Ā InteractiveĀ Drawing...Ā Ā š„ Next video: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #155:Ā KaleidoscopeĀ Snowfl...Ā Ā š„ All videos: Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā References: š Geeks for Geeks - Minimax Algorithm in Game Theory: https://www.geeksforgeeks.org/minimax... š Minimax on Wikipedia: https://en.wikipedia.org/wiki/Minimax Videos: š Algorithms Explained - minimax and alpha-beta pruning: Ā Ā Ā ā¢Ā AlgorithmsĀ ExplainedĀ āĀ minimaxĀ andĀ alpha-b...Ā Ā š“ Livestream Archive: Ā Ā Ā ā¢Ā CodingĀ TrainĀ LiveĀ 188:Ā Ā TicĀ TacĀ ToeĀ AIĀ wit...Ā Ā Related Coding Challenges: š #94 2048 Sliding Puzzle Game: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ #94:Ā 2048Ā -Ā PartĀ 1Ā Ā š #149 Tic Tac Toe: Ā Ā Ā ā¢Ā CodingĀ ChallengeĀ 149:Ā TicĀ TacĀ ToeĀ Ā Timestamps: 0:00 Introduction to the challenge 2:17 Explanation of the Minimax algorithm 8:20 Start Coding 12:54 Check to see if anybody won 14:16 Recursively check the max score for all the spots (AI) 16:51 Recursively check the min score for all the spots (Human) 18:15 Refactor using min() and max() 19:05 Fix bugs 21:13 Final output 22:46 Ideas and Suggestions Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound š Website: http://thecodingtrain.com/ š¾ Share Your Creation! https://thecodingtrain.com/guides/pas... š© Suggest Topics: https://github.com/CodingTrain/Sugges... š” GitHub: https://github.com/CodingTrain š¬ Discord: Ā Ā /Ā discordĀ Ā š Membership: http://youtube.com/thecodingtrain/join š Store: https://standard.tv/codingtrain šļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā šø Instagram: Ā Ā /Ā the.coding.trainĀ Ā š„ Coding Challenges: Ā Ā Ā ā¢Ā CodingĀ ChallengesĀ Ā š„ Intro to Programming: Ā Ā Ā ā¢Ā StartĀ learningĀ here!Ā Ā š p5.js: https://p5js.org š p5.js Web Editor: https://editor.p5js.org/ š Processing: https://processing.org š Code of Conduct: https://github.com/CodingTrain/Code-o... This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod... #beginners #tictactoe #minimaxalgorithm #games #p5js #javascript

Coding Challenge #156: Peeking inside Pi

Minimax: How Computers Play Games

Coding Adventure: Chess

Coding Challenge 3: The Snake Game

6. Search: Games, Minimax, and Alpha-Beta

Minimax with Alpha Beta Pruning

Coding Challenge 171: Wave Function Collapse

This Paradox Splits Smart People 50/50

Coding Challenge 188: Voice Chatbot

32 Game Theory & Meta Questions

I made an unbeatable Tic Tac Toe AI (Minimax algorithm)

Coding Challenge 145: 2D Raycasting

Coding Challenge 186: Wave Function Collapse

Algorithms Explained ā minimax and alpha-beta pruning

The Game You Can't Fail

Python TIC TAC TOE Tutorial | Beginner Friendly Tutorial

I Hacked This Temu Router. What I Found Should Be Illegal.

Coding an UNBEATABLE Tic Tac Toe AI (Game Theory Minimax Algorithm EXPLAINED)

Coding Challenge #71: Minesweeper

