Skip to content

Latest commit

 

History

History

2021_10_11_CodeWarrior-Class-2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Code Warrior Class-2

October 11th, 2021

Code Warrior Class 2 Recording

Class Content :-

Minimax with Alpha-Beta pruning Algorithm

Additional Resources

Additional Topics

  • Move Ordering
  • BitBoards
  • Iterative Deepening
  • Killer Heuristics
  • History Heuristics
  • Principal Variation (PV) Moves
  • 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