.
This commit is contained in:
parent
c28666df6a
commit
c2d23bd558
|
@ -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";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user