.
This commit is contained in:
parent
c2b4511300
commit
afd63bac48
|
@ -79,7 +79,7 @@ function score($board,$me,$opponent,$colToPlay,$depth){
|
||||||
//if grid is full
|
//if grid is full
|
||||||
$full = true;
|
$full = true;
|
||||||
for($i = 0; $i < 7; $i++){
|
for($i = 0; $i < 7; $i++){
|
||||||
if($newBoard == "+"){
|
if($newBoard[5][$i] == "+"){
|
||||||
$full = false;
|
$full = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user