.
This commit is contained in:
parent
4c09ef6ab1
commit
c88f2d9a1d
|
@ -101,7 +101,7 @@ function better_col($board,$me,$opponent,$depth){
|
||||||
$betterScore= -1000;
|
$betterScore= -1000;
|
||||||
$betterCol= -1;
|
$betterCol= -1;
|
||||||
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( score($board,$me,$i) > $betterScore){
|
||||||
$betterScore = $sc;
|
$betterScore = $sc;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user