This commit is contained in:
Gnieark 2016-06-13 19:44:45 +02:00
parent c28666df6a
commit c2d23bd558

View File

@ -103,10 +103,10 @@ function better_col($board,$me,$opponent,$depth){
if($board[5][$i] == "+"){ if($board[5][$i] == "+"){
$sc = score($board,$me,$opponent,$i,$depth); $sc = score($board,$me,$opponent,$i,$depth);
if( $sc > $betterScore){ if( $sc > $betterScore){
$betterScore = $sc; $betterScore = $sc -$depth;
$betterCol = $i - $depth; $betterCol = $i;
} }
echo $i." ".$sc."\n"; //echo $i." ".$sc."\n";
} }
} }