summaryrefslogtreecommitdiffstats
path: root/test_cases/q4/6-2a-check-depth-two-ghosts.test
blob: 36ecd4e52be32031005382a3131b56c521f29e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
class: "GraphGameTreeTest"
alg: "ExpectimaxAgent"
depth: "1"

diagram: """
            a
      /-/   |   \--\
     /      |       \
  0 b1    0 b2      b3 8
    |       |        |
  0 c1    0 c2      c3 8
    |       |        |
 10 d1    0 d2      d3 8
    |       |        |
  0 e1    0 e2      e3 8
    |       |        |
  0 f1    0 f2      f3 8
    |       |        |
  0 g1   10 g2      g3 8
    |       |        |
  0 h1    0 h2      h3 8
    |       |        |
  0 i1    0 i2      i3 8
    |       |        |
    j1      j2      j3
    0       0        8

a - max
b - min
c - min
d - max
e - min
f - min
g - max
h - min
i - min

At depth 1, the evaluation function is called at level d,
so Left should be returned. If your algorithm is returning a
different action, check how you implemented your depth.
"""

num_agents: "3"

start_state: "a"
win_states: "j1 j2 j3"
lose_states: ""

successors: """
a Left b1
a Center b2
a Right b3
b1 Center c1
b2 Center c2
b3 Center c3
c1 Center d1
c2 Center d2
c3 Center d3
d1 Center e1
d2 Center e2
d3 Center e3
e1 Center f1
e2 Center f2
e3 Center f3
f1 Center g1
f2 Center g2
f3 Center g3
g1 Center h1
g2 Center h2
g3 Center h3
h1 Center i1
h2 Center i2
h3 Center i3
i1 Center j1
i2 Center j2
i3 Center j3
"""


evaluation: """
b1 0.0
b2 0.0
b3 8.0
c1 0.0
c2 0.0
c3 8.0
d1 10.0
d2 0.0
d3 8.0
e1 0.0
e2 0.0
e3 8.0
f1 0.0
f2 0.0
f3 8.0
g1 0.0
g2 10.0
g3 8.0
h1 0.0
h2 0.0
h3 8.0
i1 0.0
i2 0.0
i3 8.0
j1 0.0
j2 0.0
j3 8.0
"""