ΠΠ΅ΡΠ΅Π³Π»ΡΠ΄ΡΠ² 786,689
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: thecodingtrain.com/challenges...
πΉοΈ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
π₯ Previous video: β’ Coding Challenge #153:...
π₯ Next video: β’ Coding Challenge #155:...
π₯ All videos: β’ Coding Challenges
References:
π Geeks for Geeks - Minimax Algorithm in Game Theory: www.geeksforgeeks.org/minimax...
π Minimax on Wikipedia: en.wikipedia.org/wiki/Minimax
Videos:
π Algorithms Explained - minimax and alpha-beta pruning: β’ Algorithms Explained -...
π΄ Livestream Archive: β’ Coding Train Live 188:...
Related Coding Challenges:
π #94 2048 Sliding Puzzle Game: β’ Coding Challenge #94: ...
π #149 Tic Tac Toe: β’ Tic Tac Toe in p5.js (...
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: thecodingtrain.com/
πΎ Share Your Creation! thecodingtrain.com/guides/pas...
π© Suggest Topics: github.com/CodingTrain/Sugges...
π‘ GitHub: github.com/CodingTrain
π¬ Discord: / discord
π Membership: ukposts.infojoin
π Store: standard.tv/codingtrain
ποΈ Twitter: / thecodingtrain
πΈ Instagram: / the.coding.train
π₯ Coding Challenges: β’ Coding Challenges
π₯ Intro to Programming: β’ Start learning here!
π p5.js: p5js.org
π p5.js Web Editor: editor.p5js.org/
π Processing: processing.org
π Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#beginners #tictactoe #minimaxalgorithm #games #p5js #javascript