.
This commit is contained in:
parent
c28666df6a
commit
c2d23bd558
|
@ -103,10 +103,10 @@ function better_col($board,$me,$opponent,$depth){
|
|||
if($board[5][$i] == "+"){
|
||||
$sc = score($board,$me,$opponent,$i,$depth);
|
||||
if( $sc > $betterScore){
|
||||
$betterScore = $sc;
|
||||
$betterCol = $i - $depth;
|
||||
$betterScore = $sc -$depth;
|
||||
$betterCol = $i;
|
||||
}
|
||||
echo $i." ".$sc."\n";
|
||||
//echo $i." ".$sc."\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user