Code Warrior Class-2
September 26th, 2020
Code Warrior Class 2 Recording
Class Content :-
Minimax with Alpha-Beta pruning Algorithm
Additional Resources
- Minimax, and Alpha-Beta: MIT OpenCourseWare
- Alpha-Beta pruning: HackerEarth
- Minimax/Alpha-Beta Simulator
Additional Topics
- Move Ordering
- Iterative Deepening
- Killer Heuristics
- Null Move Heuristics
- Transposition tables
Here is a code for 2k17’s problem statement, you can clone the repo ;) Clash Of Pawns AI
PseudoCode for Minimax with Alpha-Beta Pruning
evaluate (node, alpha, beta)
if node is a leaf
return the heruistic value of node
if node is a minimizing node
for each child of node
beta = min (beta, evaluate (child, alpha, beta))
if beta <= alpha
return beta
return beta
if node is a maximizing node
for each child of node
alpha = max (alpha, evaluate (child, alpha, beta))
if beta <= alpha
return alpha
return alpha