.
This commit is contained in:
parent
6d693f8bec
commit
7d891fac7f
|
@ -85,16 +85,13 @@ function score($board,$me,$opponent,$colToPlay,$depth){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($full){
|
if($full){
|
||||||
echo "full";
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($depth < 10){
|
if($depth < 5){
|
||||||
echo "depth";
|
|
||||||
return $depth - better_col($newBoard,$opponent,$me,$depth + 1);
|
return $depth - better_col($newBoard,$opponent,$me,$depth + 1);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
echo "zero";
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user