Game-Playing


Reading

Adversarial Search


Perfect-Decision Games

Minimax Algorithm
  • Recursively call Minimax on each of the initial node's children and choose the move with the largest minimax value

  • If a terminal node has been reached, apply utility function to node and return value

  • If it is MAX's turn to move, recursively call Minimax on node's children and return the maximum of the resulting values

  • If it is MIN's turn to move, recursively call Minimax on node's children and return the minimum of the resulting values

Example: Game of Nim

Properties


Games of Chance


Imperfect-Decision Games


Alpha-Beta Pruning

Examples