.
This commit is contained in:
parent
ab97ff921a
commit
1022f55276
|
@ -103,7 +103,7 @@ function better_col($board,$me,$opponent,$depth){
|
||||||
for( $i = 0; $i < 7; $i++){
|
for( $i = 0; $i < 7; $i++){
|
||||||
if($board[5][$i] == " "){
|
if($board[5][$i] == " "){
|
||||||
$sc = score($board,$me,$opponent,$i,$depth);
|
$sc = score($board,$me,$opponent,$i,$depth);
|
||||||
if( score($board,$me,$i) > $betterScore){
|
if( $sc > $betterScore){
|
||||||
$betterScore = $sc;
|
$betterScore = $sc;
|
||||||
$betterCol = $i;
|
$betterCol = $i;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user