.
This commit is contained in:
parent
1022f55276
commit
1f6e135c1a
|
@ -70,7 +70,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){
|
||||||
}
|
}
|
||||||
$line="";
|
$line="";
|
||||||
|
|
||||||
for ($jx = kx , $jy = ky ; ($jx < 7) && ($jy < 6) ; $jx++ , $jy++){
|
for ($jx = $ix , $jy = $iy ; ($jx < 7) && ($jy < 6) ; $jx++ , $jy++){
|
||||||
$line.=$newBoard[$jy][$jx];
|
$line.=$newBoard[$jy][$jx];
|
||||||
}
|
}
|
||||||
if(strpos($searchValue,$line) > -1){
|
if(strpos($searchValue,$line) > -1){
|
||||||
|
|
Loading…
Reference in New Issue
Block a user