[iagno] Calculate depth a simpler way.
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Calculate depth a simpler way.
- Date: Mon, 1 Sep 2014 15:45:39 +0000 (UTC)
commit 9d580a2ab25684410421ce545db22dc73a2f4d60
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sun Aug 31 00:36:29 2014 +0200
Calculate depth a simpler way.
Complicated things are complicated.
https://bugzilla.gnome.org/show_bug.cgi?id=708179
src/computer-player.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/computer-player.vala b/src/computer-player.vala
index e817bf1..0e1b885 100644
--- a/src/computer-player.vala
+++ b/src/computer-player.vala
@@ -73,7 +73,7 @@ public class ComputerPlayer : Object
return;
}
- var depth = 7 - (3 - level) * 2;
+ var depth = level * 2 + 1;
var tiles_remaining = 64 - game.n_tiles;
/* Choose a strategy based on how close to the end we are.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]