summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-24 19:35:29 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-24 19:35:29 +0100
commita43b138ab8ec7279709fa0cdb686cdc3be026466 (patch)
treea7f2c390023714097260635f9d6a45b509c44fef /core/src
parentb7e35dc0368e77e36f0e71d0348adf2bea847588 (diff)
downloadRustAndDust-a43b138ab8ec7279709fa0cdb686cdc3be026466.zip
RustAndDust-a43b138ab8ec7279709fa0cdb686cdc3be026466.tar.gz
PathBuilder: give more weight to objectives
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
index 72ba69f..0f18ae0 100644
--- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
+++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
@@ -157,7 +157,7 @@ public class PathBuilder implements Disposable
int n = next.costFrom(pawn, o);
boolean r = next.road(o);
int f = (fitness + 1 + (r ? 0 : 1));
- if (board.isObjectiveFor(next, pawn)) f -= 2;
+ if (board.isObjectiveFor(next, pawn)) f -= 4;
int m = (mvtLeft - n);
r &= roadMarch;