diff --git a/connectfour.php b/connectfour.php index 52b8b26..0576554 100644 --- a/connectfour.php +++ b/connectfour.php @@ -36,6 +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"; if(strpos($searchValue,$line)){ return 42 - $depth; }