@@ -56,9 +56,9 @@ function Board(container, images) {
5656 var this_ = this ;
5757 for ( var sq = 0 ; sq < 256 ; sq ++ ) {
5858 // 遍历虚拟棋盘的256个点
59-
60- // 1.判断该点是否位于真实棋盘
61- if ( ! IN_BOARD ( sq ) ) {
59+
60+ // 1.判断该点是否位于真实棋盘
61+ if ( ! IN_BOARD ( sq ) ) {
6262 this . imgSquares . push ( null ) ;
6363 continue ;
6464 }
@@ -137,7 +137,7 @@ Board.prototype.postAddMove = function(mv, computerMove) {
137137 this . drawSquare ( SRC ( this . mvLast ) , false ) ;
138138 this . drawSquare ( DST ( this . mvLast ) , false ) ;
139139 }
140-
140+
141141 // 显示这一步走棋的选中方框
142142 this . drawSquare ( SRC ( mv ) , true ) ;
143143 this . drawSquare ( DST ( mv ) , true ) ;
@@ -189,7 +189,7 @@ Board.prototype.response = function() {
189189 var mvResult = 0 ;
190190 this . busy = true ;
191191 setTimeout ( function ( ) {
192- this_ . addMove ( board . search . searchMain ( LIMIT_DEPTH , 100 ) , true ) ;
192+ this_ . addMove ( board . search . searchMain ( LIMIT_DEPTH , 1000 ) , true ) ;
193193 this_ . thinking . style . visibility = "hidden" ;
194194 } , 250 ) ;
195195}
@@ -215,7 +215,7 @@ Board.prototype.clickSquare = function(sq_) {
215215 this . sqSelected = sq ;
216216 } else if ( this . sqSelected > 0 ) {
217217 // 点击的不是己方棋子(对方棋子或者无子的位置),但有子选中了(一定是自己的子),那么执行这个走法
218- this . addMove ( MOVE ( this . sqSelected , sq ) , false ) ;
218+ this . addMove ( MOVE ( this . sqSelected , sq ) , false ) ;
219219 }
220220}
221221
0 commit comments