Say I just tried this exactly like you did and I must be doing something wrong because It's breaking everything. I even tried using the pseudo code example off the wiki and it didn't work either and I even tried another one I found and it still doesn't work... Am I supposed to be passing these values by reference? No body explains if I'm supposed to have a global variable for Alpha/Beta or local ones that get set by the value passed down the chain. What I'm doing is passing in the value, setting the local variables, then running down the chain, when it gets passed back up the score is checked and the min gets set to beta for the minimizer or the max gets set to alpha for the maximizer...then if alpha is greater than or equal to beta then I break the for loop...it's not working though. The computer just keeps trying to place a marker where there already is one.
Update: I figured it out, I got it fully operational now and with Alpha/Beta pruning by debugging with your board configuration and moving through step by step like you do. Thanks again for the video and breakdown.
Thanks for this video your explanations were very clear, it helped me a lot !
Say I just tried this exactly like you did and I must be doing something wrong because It's breaking everything. I even tried using the pseudo code example off the wiki and it didn't work either and I even tried another one I found and it still doesn't work...
Am I supposed to be passing these values by reference? No body explains if I'm supposed to have a global variable for Alpha/Beta or local ones that get set by the value passed down the chain.
What I'm doing is passing in the value, setting the local variables, then running down the chain, when it gets passed back up the score is checked and the min gets set to beta for the minimizer or the max gets set to alpha for the maximizer...then if alpha is greater than or equal to beta then I break the for loop...it's not working though. The computer just keeps trying to place a marker where there already is one.
Update: I figured it out, I got it fully operational now and with Alpha/Beta pruning by debugging with your board configuration and moving through step by step like you do. Thanks again for the video and breakdown.
Nice explanation. Hope to see more videos from you in the future
Really helpful!
How the child minimizer score is -1
when going from node e to node b, shouldn't the score be updated to 1?
no, because we're looking for the min not the max in that case