--- a/2048.html Sun Oct 19 01:04:19 2014 +0300
+++ b/2048.html Sun Oct 19 01:13:42 2014 +0300
@@ -281,6 +281,16 @@
<input type="text" name="freeBonus" class="positive" pattern="[0-9]*[.]?[0-9]*" value="10"/> free cell coefficient
</div>
</div>
+ <div class="ai wide control" id="ai-survive">
+ <button class="ai">enable</button>
+ <h5>survive</h5>
+ <div class="option">
+ <input type="text" name="maxDepth" class="positive" pattern="[0-9]*" value="5"/> depth
+ </div>
+ <div class="option">
+ <input type="text" name="freeCells" class="positive" pattern="[1-9][0-9]?" value="8"/> free cells
+ </div>
+ </div>
</div>
</div>
@@ -785,6 +795,10 @@
var cfg = ui.ai.parseCfg(aiDom);
return new ai.expectimax(ui.brdEngine, cfg);
},
+ "ai-survive": function(aiDom) {
+ var cfg = ui.ai.parseCfg(aiDom);
+ return new ai.survive(ui.brdEngine, cfg);
+ },
// "": function() {
// return new ai.(ui.brdEngine);
// },