Update tictactoe.php
This commit is contained in:
parent
c041a35f02
commit
1c9fa1db0c
|
@ -36,7 +36,7 @@ function score_case($map,$me,$him,$case,$depth=0){
|
||||||
return 0;
|
return 0;
|
||||||
}else{
|
}else{
|
||||||
$sc=choose_better_cell($newMap,$him,$me,$depth + 1);
|
$sc=choose_better_cell($newMap,$him,$me,$depth + 1);
|
||||||
return -$sc[1];
|
return -$depth + $sc[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user