summaryrefslogtreecommitdiffstats
path: root/src/test_cases/q3/1-3-minmax.test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_cases/q3/1-3-minmax.test')
-rw-r--r--src/test_cases/q3/1-3-minmax.test47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/test_cases/q3/1-3-minmax.test b/src/test_cases/q3/1-3-minmax.test
new file mode 100644
index 0000000..0fc2226
--- /dev/null
+++ b/src/test_cases/q3/1-3-minmax.test
@@ -0,0 +1,47 @@
+class: "GraphGameTreeTest"
+alg: "AlphaBetaAgent"
+depth: "3"
+
+diagram: """
+ /-----a------\
+ / \
+ / \
+ b1 b2
+ | / \
+ cx c3 c4
+ | / \ / \
+ dx d5 d6 d7 d8
+ 4.01 4 -7 0 5
+
+a - max
+b - min
+c - max
+
+Note that the minimax value of b2 is 4.
+"""
+num_agents: "2"
+
+start_state: "a"
+win_states: "d1 d2 d3 d4 d5 d6 d7 d8 dx"
+lose_states: ""
+
+successors: """
+a Left b1
+a Right b2
+b1 Down cx
+b2 Left c3
+b2 Right c4
+c3 Left d5
+c3 Right d6
+c4 Left d7
+c4 Right d8
+cx Down dx
+"""
+
+evaluation: """
+d5 4.0
+d6 -7.0
+d7 0.0
+d8 5.0
+dx 4.01
+"""