This commit is contained in:
Gnieark 2016-06-13 16:30:26 +02:00
parent 1022f55276
commit 1f6e135c1a

View File

@ -70,7 +70,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){
}
$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];
}
if(strpos($searchValue,$line) > -1){