From 1c9fa1db0c83c2b41d99c82dbc9115e73ab3e07a Mon Sep 17 00:00:00 2001 From: Gnieark Date: Tue, 31 May 2016 13:27:32 +0200 Subject: [PATCH] Update tictactoe.php --- tictactoe.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe.php b/tictactoe.php index 810384b..95e6e90 100644 --- a/tictactoe.php +++ b/tictactoe.php @@ -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]; } } }