summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-18 21:38:37 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-18 21:38:37 +0100
commitc6278bbbafdd3dacf64ff4a91b9d96ab13190975 (patch)
tree445754917b79756961318714fc161ff0d92d7a99 /core/src/ch/asynk
parentb3ee6b0badf91e521797483cbd20cc51b9117a83 (diff)
downloadRustAndDust-c6278bbbafdd3dacf64ff4a91b9d96ab13190975.zip
RustAndDust-c6278bbbafdd3dacf64ff4a91b9d96ab13190975.tar.gz
PossiblePaths: add error message when getMove() cant find unique Path
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PossiblePaths.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
index 847b88e..1dbb12b 100644
--- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
+++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
@@ -192,8 +192,10 @@ public class PossiblePaths implements Disposable
public Move getMove()
{
- if (size() != 1)
+ if (size() != 1) {
+ System.err.println("ask for only move but they are many");
return null;
+ }
return Move.get(pawn, from, to, orientation, getPath(0));
}