--- a/2048.html Mon Sep 22 01:44:48 2014 +0300
+++ b/2048.html Mon Sep 22 22:35:41 2014 +0300
@@ -235,13 +235,28 @@
</div>
<div class="clearfix"></div>
</div>
- <div class="ai" id="ai-deep-max-score">
+ <div class="ai" id="ai-static-deep-merges">
<button class="ai">enable</button>
- <h5>deep merges without simulation make max score</h5>
- </div>
- <div class="ai" id="ai-deep-max-score-corner">
- <button class="ai">enable</button>
- <h5>deep merges without simulation make max score + bonus if max value at corner/edge</h5>
+ <h5>deep merges without random simulation</h5>
+ <div class="option">
+ <input type="text" name="scoreCoef" class="positive" pattern="[0-9]*[.]?[0-9]*" value="1"/> score weight
+ </div>
+ <div class="option">
+ <input type="text" name="maxValCoef" class="positive" pattern="[0-9]*[.]?[0-9]*" value="0"/> max value weight
+ </div>
+ <div class="option">
+ <input type="text" name="cornerBonus" class="positive" pattern="[0-9]*[.]?[0-9]*" value="100"/> max value at corner bonus
+ </div>
+ <div class="option">
+ <input type="text" name="edgeBonus" class="positive" pattern="[0-9]*[.]?[0-9]*" value="0"/> max value at edge bonus
+ </div>
+ <div class="option">
+ <input type="text" name="freeBonus" class="positive" pattern="[0-9]*[.]?[0-9]*" value="10"/> free cell coefficient
+ </div>
+ <div class="option">
+ <input type="text" name="weightThreshold" class="positive" pattern="[0-9]*[.]?[0-9]*" value="10"/> score threshold
+ </div>
+ <div class="clearfix"></div>
</div>
<div class="ai" id="ai-expectimax">
<button class="ai">enable</button>
@@ -732,11 +747,9 @@
var cfg = ui.ai.parseCfg(aiDom);
return new ai.OneStepAhead(ui.brdEngine, cfg);
},
- "ai-deep-max-score": function() {
- return new ai.DeepMaxScore(ui.brdEngine);
- },
- "ai-deep-max-score-corner": function() {
- return new ai.DeepMaxScoreCorner(ui.brdEngine);
+ "ai-static-deep-merges": function(aiDom) {
+ var cfg = ui.ai.parseCfg(aiDom);
+ return new ai.StaticDeepMerges(ui.brdEngine, cfg);
},
"ai-expectimax": function(aiDom) {
var cfg = ui.ai.parseCfg(aiDom);