This commit is contained in:
Gnieark 2016-06-13 20:50:08 +02:00
parent c2c3c1207b
commit 8c98a2534c

View File

@ -36,6 +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";
if(strpos($searchValue,$line)){ if(strpos($searchValue,$line)){
return 42 - $depth; return 42 - $depth;
} }