This commit is contained in:
Gnieark 2016-06-13 20:58:40 +02:00
parent 87ffba1389
commit 5a67a17ed7

View File

@ -36,7 +36,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){
for ($i=0; $i < 6; $i++){
$line.=$newBoard[$i][$colToPlay];
}
echo $line."p".strpos($searchValue,$line)."|\n";
echo $line."p".$searchValue." ".strpos($searchValue,$line)."|\n";
if(strpos($searchValue,$line)){
return 42 - $depth;
}