diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-25 17:27:18 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-25 17:27:18 +0200 |
commit | 5e855398b9f7168dbc5c5827da19c7fcf4605b5b (patch) | |
tree | af268314b695c01bb4feaa1d9bf9793adcce9d11 /src | |
parent | a1c0cb89f67386738fc59426fd68737a393e1827 (diff) | |
download | JRummikub-5e855398b9f7168dbc5c5827da19c7fcf4605b5b.tar JRummikub-5e855398b9f7168dbc5c5827da19c7fcf4605b5b.zip |
Tests for counting of identical stone pairs
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@274 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src')
-rw-r--r-- | src/jrummikub/model/Hand.java | 6 | ||||
-rw-r--r-- | src/jrummikub/model/IHand.java | 9 |
2 files changed, 14 insertions, 1 deletions
diff --git a/src/jrummikub/model/Hand.java b/src/jrummikub/model/Hand.java index f415620..7294ced 100644 --- a/src/jrummikub/model/Hand.java +++ b/src/jrummikub/model/Hand.java @@ -261,4 +261,10 @@ public class Hand extends StoneTray<Stone> implements IHand { } return false; } + + @Override + public int getIdenticalStoneCount() { + // TODO Auto-generated method stub + return 0; + } } diff --git a/src/jrummikub/model/IHand.java b/src/jrummikub/model/IHand.java index afe5c12..5ac7537 100644 --- a/src/jrummikub/model/IHand.java +++ b/src/jrummikub/model/IHand.java @@ -34,5 +34,12 @@ public interface IHand extends IStoneTray<Stone> { *
* @return true if an initial meld is possible
*/
- public abstract boolean isInitialMeldPossible();
+ public boolean isInitialMeldPossible();
+
+ /**
+ * Counts the pairs of identical stones
+ *
+ * @return number of identical stone pairs
+ */
+ public int getIdenticalStoneCount();
}
|