CS632 Lecture 09
CS632 Lecture 09
INTELLIGENCE
GAME TREES
CS-632
• Deterministic
• Turn-taking
• 2-player
• Zero-sum
• Perfect information
This is an example of a
partial game tree for the
game tic-tac-toe.
Even for this simple game,
the game tree is very large.
ASSUMPTIONS
• In talking about game playing systems, we make a
number of assumptions:
• The opponent is rational – will play to win.
• The game is zero-sum – if one player wins, the other loses.
• Usually, the two players have complete knowledge of the
game. For games such as poker, this is clearly not true.
MINIMAX
Max 1 3 6 0 7
5
5 2 1 3 6 2 0 7
MINIMAX FUNCTION
• MINIMAX-VALUE(n) =
• UTILITY(n)
if n is a terminal state
• maxs Successors(n) MINIMAX-VALUE(s)
if n is a MAX node
• mins Successors(n) MINIMAX-VALUE(s)
if n is a MIN node
SEARCHING GAME TREES
https://www.javatpoint.com/ai-alpha-beta-pruning
ALPHA-BETA PRUNING –
EXAMPLE.
max 3 • In this tree, having
examined the nodes with
values 7 and 1 there is
no need to examine the
min final node.
CHECKERS