diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-24 19:35:29 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-12-24 19:35:29 +0100 |
commit | a43b138ab8ec7279709fa0cdb686cdc3be026466 (patch) | |
tree | a7f2c390023714097260635f9d6a45b509c44fef /core/src/ch/asynk/rustanddust/engine | |
parent | b7e35dc0368e77e36f0e71d0348adf2bea847588 (diff) | |
download | RustAndDust-a43b138ab8ec7279709fa0cdb686cdc3be026466.zip RustAndDust-a43b138ab8ec7279709fa0cdb686cdc3be026466.tar.gz |
PathBuilder: give more weight to objectives
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 2 |
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; |