.
This commit is contained in:
parent
87ffba1389
commit
5a67a17ed7
|
@ -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".$searchValue." ".strpos($searchValue,$line)."|\n";
|
||||||
if(strpos($searchValue,$line)){
|
if(strpos($searchValue,$line)){
|
||||||
return 42 - $depth;
|
return 42 - $depth;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user