This commit is contained in:
Gnieark 2016-06-13 16:28:20 +02:00
parent ab97ff921a
commit 1022f55276

View File

@ -103,7 +103,7 @@ function better_col($board,$me,$opponent,$depth){
for( $i = 0; $i < 7; $i++){
if($board[5][$i] == " "){
$sc = score($board,$me,$opponent,$i,$depth);
if( score($board,$me,$i) > $betterScore){
if( $sc > $betterScore){
$betterScore = $sc;
$betterCol = $i;
}