Update tictactoe.php

This commit is contained in:
Gnieark 2016-05-31 13:27:32 +02:00
parent c041a35f02
commit 1c9fa1db0c

View File

@ -36,7 +36,7 @@ function score_case($map,$me,$him,$case,$depth=0){
return 0;
}else{
$sc=choose_better_cell($newMap,$him,$me,$depth + 1);
return -$sc[1];
return -$depth + $sc[1];
}
}
}