summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/Hand.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jrummikub/model/Hand.java b/src/jrummikub/model/Hand.java
index 0f8b050..344855d 100644
--- a/src/jrummikub/model/Hand.java
+++ b/src/jrummikub/model/Hand.java
@@ -99,8 +99,13 @@ public class Hand extends StoneTray<Stone> implements IHand {
Pair<TreeMap<Pair<Integer, StoneColor>, Integer>, Integer> stoneCounts = AIUtil
.countStones(stones);
- return AIUtil.findSetsWithTotalPoints(settings.getInitialMeldThreshold(),
- stoneCounts.getFirst(), stoneCounts.getSecond());
+ Pair<List<StoneSet>, Integer> result = AIUtil.findSetsWithTotalPoints(
+ settings.getInitialMeldThreshold(), stoneCounts.getFirst(),
+ stoneCounts.getSecond());
+
+ System.out.println(result);
+
+ return (result.getSecond() >= settings.getInitialMeldThreshold());
}
@Override