summaryrefslogtreecommitdiffstats
path: root/test_cases/q4/0-expectimax1.test
diff options
context:
space:
mode:
authorNeil Kollack <nkollack@gmail.com>2021-09-28 14:27:45 -0500
committerNeil Kollack <nkollack@gmail.com>2021-09-28 14:27:45 -0500
commitdd3dda9dcbb6bff01d066925757ec944621dc704 (patch)
tree3b30a7c4973892c78a4f215e92ac6426f9e7fc5d /test_cases/q4/0-expectimax1.test
parent41406c7ff0ff96998978e520f5c1a1f3874c3bd4 (diff)
intial commit
Diffstat (limited to 'test_cases/q4/0-expectimax1.test')
-rw-r--r--test_cases/q4/0-expectimax1.test48
1 files changed, 48 insertions, 0 deletions
diff --git a/test_cases/q4/0-expectimax1.test b/test_cases/q4/0-expectimax1.test
new file mode 100644
index 0000000..deee59a
--- /dev/null
+++ b/test_cases/q4/0-expectimax1.test
@@ -0,0 +1,48 @@
+class: "GraphGameTreeTest"
+alg: "ExpectimaxAgent"
+depth: "2"
+
+# Tree adapted from lecture 6 slides
+diagram: """
+ max
+ /-/ | \--\
+ / | \
+ / | \
+ exp1 exp2 exp3
+ /|\ /|\ /|\
+ / | \ / | \ / | \
+A B C D E F G H I
+3 12 8 2 4 6 14 5 2
+"""
+num_agents: "2"
+
+start_state: "max"
+win_states: "A B C D E F G H I"
+lose_states: ""
+
+successors: """
+max Left exp1
+max Center exp2
+max Right exp3
+exp1 Left A
+exp1 Center B
+exp1 Right C
+exp2 Left D
+exp2 Center E
+exp2 Right F
+exp3 Left G
+exp3 Center H
+exp3 Right I
+"""
+
+evaluation: """
+A 3.0
+B 12.0
+C 8.0
+D 2.0
+E 4.0
+F 6.0
+G 14.0
+H 5.0
+I 2.0
+"""