diff --git a/connectfour.php b/connectfour.php index 08540d9..58c3178 100644 --- a/connectfour.php +++ b/connectfour.php @@ -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; }