.
This commit is contained in:
parent
c9be6d096a
commit
08851c9450
|
@ -115,7 +115,7 @@ function better_col($board,$me){
|
||||||
$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,$i)
|
$sc = score($board,$me,$i);
|
||||||
if( score($board,$me,$i) > $betterScore){
|
if( score($board,$me,$i) > $betterScore){
|
||||||
$betterScore = $sc;
|
$betterScore = $sc;
|
||||||
$betterCol = $i;
|
$betterCol = $i;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user