This commit is contained in:
Gnieark 2016-06-13 20:52:46 +02:00
parent 8c98a2534c
commit 87ffba1389

View File

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