2048.html
changeset 163 87479ae56889
parent 159 2709c9ff04f0
child 164 cdde49008500
equal deleted inserted replaced
162:f2c55c5744ab 163:87479ae56889
   289         </div>
   289         </div>
   290         <div class="option">
   290         <div class="option">
   291           <input type="text" name="freeCells" class="positive" pattern="[1-9][0-9]?" value="8"/> free cells
   291           <input type="text" name="freeCells" class="positive" pattern="[1-9][0-9]?" value="8"/> free cells
   292         </div>
   292         </div>
   293       </div>
   293       </div>
       
   294       <div class="ai wide control" id="ai-monte-carlo">
       
   295         <button class="ai">enable</button>
       
   296         <h5>Monte Carlo</h5>
       
   297         <div class="option">
       
   298           <input type="text" name="maxDepth" class="positive" pattern="[0-9]*" value="5"/> depth limit
       
   299         </div>
       
   300         <div class="option">
       
   301           <input type="text" name="simulations" class="positive" pattern="[0-9]*" value="100"/> simulations
       
   302         </div>
       
   303       </div>
   294     </div>
   304     </div>
   295   </div>
   305   </div>
   296 
   306 
   297   <div id="report-area" class="area">
   307   <div id="report-area" class="area">
   298     <h1>Reports</h1>
   308     <h1>Reports</h1>
   796         return new ai.expectimax(ui.brdEngine, cfg);
   806         return new ai.expectimax(ui.brdEngine, cfg);
   797       },
   807       },
   798       "ai-survive": function(aiDom) {
   808       "ai-survive": function(aiDom) {
   799         var cfg = ui.ai.parseCfg(aiDom);
   809         var cfg = ui.ai.parseCfg(aiDom);
   800         return new ai.survive(ui.brdEngine, cfg);
   810         return new ai.survive(ui.brdEngine, cfg);
       
   811       },
       
   812       "ai-monte-carlo": function(aiDom) {
       
   813         var cfg = ui.ai.parseCfg(aiDom);
       
   814         return new ai.MonteCarlo(ui.brdEngine, cfg);
   801       },
   815       },
   802       // "": function() {
   816       // "": function() {
   803       //   return new ai.(ui.brdEngine);
   817       //   return new ai.(ui.brdEngine);
   804       // },
   818       // },
   805     };
   819     };