2048.html
changeset 14 9b49e710f5a7
parent 13 b3bfa9d1b537
child 15 0fa97e430a9e
--- a/2048.html	Sun Sep 07 14:16:26 2014 +0300
+++ b/2048.html	Sun Sep 07 23:30:11 2014 +0300
@@ -87,6 +87,7 @@
       <button id="ai-random">random</button>
       <button id="ai-next-max-score">next max score</button>
       <button id="ai-next-max-value">next max value</button>
+      <button id="ai-deep-max-score">deep max score</button>
     </div>
   </div>
 
@@ -293,6 +294,9 @@
     document.getElementById("ai-next-max-value").addEventListener("click", function() {
       ui.ai = new ai.nextMaxValue(ui.brdEngine);
     });
+    document.getElementById("ai-deep-max-score").addEventListener("click", function() {
+      ui.ai = new ai.deepMaxScore(ui.brdEngine);
+    });
 
   </script>