.
This commit is contained in:
parent
8c98a2534c
commit
87ffba1389
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user