00:01
All right, so here for the alpha -beta dfs minimax algorithm, we assume the root is a max node.
00:07
The search is limited to depth n, and we have that e of v is going to evaluate a node v at depth n or terminal states.
00:19
Now for the algorithm, we do alpha beta, node depth, alpha -beta, maximizing player, and then we write if depth, depth, equals zero or node is terminal then return e node and then if maximizing player then value negative infinity and then we do for each child of node do value would be max value alpha beta child depth, negative 1, alpha beta.
01:24
So alpha, comma, beta, comma, false.
01:27
And then close that with two parentheses.
01:30
And then a max, a, comma, value.
01:45
And then if a rated enter equal to beta, then break beta cutoff.
02:02
And then return value.
02:18
And then we do else.
02:22
And then here we do minimizing player...