1
1
CS 331: Artificial Intelligence Adversarial Search II
2
Outline
- 1. Evaluation Functions
- 2. State-of-the-art game playing programs
- 3. 2 player zero-sum finite stochastic games
- f perfect information
CS 331: Artificial Intelligence Adversarial Search II 1 Outline - - PDF document
CS 331: Artificial Intelligence Adversarial Search II 1 Outline 1. Evaluation Functions 2. State-of-the-art game playing programs 3. 2 player zero-sum finite stochastic games of perfect information 2 1 Evaluation Functions 3 Evaluation
1
2
3
4
5
T Cutoff
6
X O O X X
Eval=+100 (for win)
O X X O
Eval=2 X’s move
O X X O X O
Eval=-100 (for loss)
X O O X
X’s move
Eval=1
7
8
Even in a deterministic game like chess, the evaluation function introduces uncertainty because of the lack of computational resources (can’t see all the way to the terminal state so you have to make a guess as to how good your state is).
9
n i i i n n
1 2 2 1 1
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
5 pieces, many with 6 pieces remaining)
26
27
28
29
30
Value Prob 1 2 3 4 5 6 1 Value Prob 1 0.5 2 3 4 5 6 0.5 Value Prob 1 0.1 2 0.1 3 0.2 4 0.2 5 0.3 6 0.1 OR OR
31
Value Prob 1 0.1 2 0.1 3 0.2 4 0.2 5 0.3 6 0.1
Expected Value = (0.1)(1)+(0.1)(2)+(0.2)(3)+(0.2)(4)+(0.3)(5)+(0.1)(6) = 0.1 + 0.2 + 0.6 + 0.8 + 1.5 + 0.6 = 3.8
32
A B Chance Chance p=0.1
p=0.9 +10
+10 p=0.5 p=0.5
chance nodes
minimax value
MAX MIN
33
A B Chance Chance p=0.1
p=0.9 +10
+10 p=0.5 p=0.5
(0.5)(10)+(0.5)(-12)=
MAX MIN
34
A B Chance Chance p=0.1
p=0.9 +10
+10 p=0.5 p=0.5
(0.1)(-50)+(0.9)(10)=4 (0.5)(10)+(0.5)(-12)=
MAX MIN
35
A B Chance Chance p=0.1
p=0.9 +10
+10 p=0.5 p=0.5
(0.1)(-50)+(0.9)(10)=4 (0.5)(10)+(0.5)(-12)=
4
MAX MIN
36
) ( Successors s
n
) ( Successors s
n
(n) Successors s
If n is a MAX node If n is a terminal state If n is a chance node If n is a MIN node
37
n = # of possibilities at a chance node (assuming all chance nodes have the same number of possibilities)
38
39