From c6278bbbafdd3dacf64ff4a91b9d96ab13190975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 18 Jan 2015 21:38:37 +0100 Subject: PossiblePaths: add error message when getMove() cant find unique Path --- core/src/ch/asynk/tankontank/engine/PossiblePaths.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); } -- cgit v1.1-2-g2b99