2048.html
changeset 172 021cd45cb5ef
parent 170 b2e6398d2b06
child 173 865ce4c30bed
equal deleted inserted replaced
171:6fce1391c2c0 172:021cd45cb5ef
   187     <div class="ai-list">
   187     <div class="ai-list">
   188       <div class="ai wide control" id="ai-blind-random">
   188       <div class="ai wide control" id="ai-blind-random">
   189         <button class="ai">enable</button>
   189         <button class="ai">enable</button>
   190         <h5>bling random</h5>
   190         <h5>bling random</h5>
   191       </div>
   191       </div>
       
   192       <div class="ai wide control" id="ai-always-up">
       
   193         <button class="ai">enable</button>
       
   194         <h5>always up</h5>
       
   195       </div>
   192       <div class="ai wide control" id="ai-blind-weight-random">
   196       <div class="ai wide control" id="ai-blind-weight-random">
   193         <button class="ai">enable</button>
   197         <button class="ai">enable</button>
   194         <h5>bling weight random</h5>
   198         <h5>bling weight random</h5>
   195         <div class="option">
   199         <div class="option">
   196           <input type="text" name="left" class="positive" pattern="[0-9]*[.]?[0-9]*" value="1"/> left weight
   200           <input type="text" name="left" class="positive" pattern="[0-9]*[.]?[0-9]*" value="1"/> left weight
   791     }
   795     }
   792 
   796 
   793     ui.ai.algList = {
   797     ui.ai.algList = {
   794       "ai-blind-random": function() {
   798       "ai-blind-random": function() {
   795         return new ai.BlindRandom(ui.brdEngine);
   799         return new ai.BlindRandom(ui.brdEngine);
       
   800       },
       
   801       "ai-always-up": function() {
       
   802         return new ai.AlwaysUp(ui.brdEngine);
   796       },
   803       },
   797       "ai-blind-weight-random": function(aiDom) {
   804       "ai-blind-weight-random": function(aiDom) {
   798         var cfg = ui.ai.parseCfg(aiDom);
   805         var cfg = ui.ai.parseCfg(aiDom);
   799         return new ai.BlindWeightRandom(ui.brdEngine, cfg);
   806         return new ai.BlindWeightRandom(ui.brdEngine, cfg);
   800       },
   807       },