2048.html
changeset 21 ed0292f0c7c6
parent 20 ab294e8db00c
child 25 2ef10a49a28f
--- a/2048.html	Mon Sep 08 17:43:10 2014 +0300
+++ b/2048.html	Mon Sep 08 19:42:32 2014 +0300
@@ -89,6 +89,7 @@
       <button id="ai-next-max-value">next max value</button>
       <button id="ai-deep-max-score">deep max score</button>
       <button id="ai-deep-max-score-corner">deep max score corner</button>
+      <button id="ai-expectimax">expectimax</button>
     </div>
   </div>
 
@@ -358,6 +359,9 @@
     document.getElementById("ai-deep-max-score-corner").addEventListener("click", function() {
       ui.ai = new ai.deepMaxScoreCorner(ui.brdEngine);
     });
+    document.getElementById("ai-expectimax").addEventListener("click", function() {
+      ui.ai = new ai.expectimax(ui.brdEngine);
+    });
 
   </script>