Tic-Tac-Toe Game in Python - Unbeatable Minimax AI

  Рет қаралды 17,746

NeuralNine

NeuralNine

Күн бұрын

Пікірлер: 28
@deepbrar1
@deepbrar1 9 ай бұрын
DuuuDE, I have been working on the same project i.e.(creating a AI using minimax algorithm for tic tac toe in python). It's been a few days since i started working on it and still haven't finished it. Of course i won't watch this video right now because I wanna implement it myself but I surely will compare mine with yours after I am done building it :)
@unstoppableforever1266
@unstoppableforever1266 6 ай бұрын
Ooo did u think abt making them fight?
@deepbrar1
@deepbrar1 6 ай бұрын
@@unstoppableforever1266 yep i tried that and it's always a tie....
@tithos
@tithos 9 ай бұрын
Please make the in-depth minimax episode
@shaurryabaheti
@shaurryabaheti 9 ай бұрын
I guess a good feature update to this would be a depth choice from the player, to make difficulty level a choice.
@casualchou
@casualchou 9 ай бұрын
Interesting one. Didn't knew we can use any algorithm to solve such problem instead of a ml model
@muhammadsuleman3327
@muhammadsuleman3327 6 ай бұрын
Thanks dude ! It was very helpful please make more videos like this.
@ThomasRStevenson
@ThomasRStevenson 9 ай бұрын
Great example of using a minimax function. Could you replace the minimax function with a unsupervised pytorch NN algorithm that learns over time?
@ebenezerarmah7406
@ebenezerarmah7406 7 ай бұрын
What’s the “depth” variable used for in the minmax function. Looks like it wasn’t used at all. What will removing that parameter do?
@mikulasnovak5751
@mikulasnovak5751 4 ай бұрын
its kinda not needed but when you print it or something it tells you how much moves did the ai thought already
@uttamvaghasia2961
@uttamvaghasia2961 9 ай бұрын
i followed you along but when i runned the game, it does not let me make my moves in certain squares and does in some case i am unable to make moves in any of the squares. Can anyone give me a better approach on how should I debug the problem?
@ShuchiBoo
@ShuchiBoo 6 ай бұрын
What is the platform used for the written code ???
@javiergomez8286
@javiergomez8286 7 ай бұрын
Nice code and explanation, but when I tried with the player 2 starting the game, it does not work properly.
@robinpipslayertekprofitsfa2644
@robinpipslayertekprofitsfa2644 9 ай бұрын
Man You are always dropping Gems!! 😵🤓 Glad I #Subscribe
@darshanvadile1288
@darshanvadile1288 4 ай бұрын
This is awesome
@Pythonist_01
@Pythonist_01 9 ай бұрын
I got one too 😅 Time to get to work
@MUZAMILbinUbaid
@MUZAMILbinUbaid 25 күн бұрын
where can i get the code?
@jntb3000
@jntb3000 6 ай бұрын
Hi I thought AI requires some sort of neural network? Otherwise it would just be normal procedural programming, correct? Thanks
@NeuralNine
@NeuralNine 6 ай бұрын
It depends. AI is a broad term, which can include any "artificial intelligence" displayed by a computer. Then there is machine learning, which is a sub-field of AI and then there is deep learning, which is a sub-field of ML. Deep learning involves neural networks.
@gaiusomonale9934
@gaiusomonale9934 7 ай бұрын
Could you please make the source code for this available ? Thank you for your content
@sakib-qm7jz
@sakib-qm7jz 5 ай бұрын
hi, how do I get the codes?
@shotkiller5532
@shotkiller5532 5 ай бұрын
how?
@zenkaikalashnikov4753
@zenkaikalashnikov4753 9 ай бұрын
i get ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() error on def check_win(player, check_board = board): for col in range(BOARD_COLS): if check_board[0][col] == player and check_board[1][col] == player and check_board[2][col] == player: return True for row in range(BOARD_ROWS): if check_board[row][0] == player and check_board[row][1] == player and check_board[row][2] == player: return True if check_board[0][0] == player and check_board[1][1] == player and check_board[2][2] == player: return True if check_board[0][0] == player and check_board[1][1] == player and check_board[2][2] == player: return True return False what did i do wrong
@Vincent2103
@Vincent2103 9 ай бұрын
if check_board[0][2] == player and check_board[1][1] == player and check_board[2][0] == player: return True replace the last one +------+-----+------+ | 0,0 | 0,1 | 0,2 | +------+-----+------+ | 1,0 | 1,1 | 1,2 | +------+-----+------+ | 2,0 | 2,1 | 2,2 | +------+-----+------+ not sure is this solved it cause im still new to this my bad
@thomasgoodwin2648
@thomasgoodwin2648 9 ай бұрын
Gray should be (128, 128,128). (180,180,180) is LIGHT_GRAY! (Sorry, only thing I found I could pick on😉) 🖖🤓👍
Minimax: How Computers Play Games
14:37
Spanning Tree
Рет қаралды 218 М.
Minimax Algorithm for Tic Tac Toe (Coding Challenge 154)
26:33
The Coding Train
Рет қаралды 829 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Unpacking Operators in Python: What are * and **?
12:35
NeuralNine
Рет қаралды 10 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,5 МЛН
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 130 М.
Algorithms Explained - minimax and alpha-beta pruning
11:01
Sebastian Lague
Рет қаралды 1,1 МЛН
Superpositions, Sudoku, the Wave Function Collapse algorithm.
14:28
Martin Donald
Рет қаралды 714 М.
What is Hugging Face? - Machine Learning Hub Explained
10:05
NeuralNine
Рет қаралды 53 М.
Code With Me: Automating My Life With Python and AI
13:33
Tiff In Tech
Рет қаралды 81 М.
Cellular Automata in Python - Complexity From Simplicity
35:07
Genetic Algorithms in Python - Evolution For Optimization
26:10
NeuralNine
Рет қаралды 22 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН