Correctly show invalid sets

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@471 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-06-19 00:14:27 +02:00
parent e8549b95df
commit 479384d6bf
13 changed files with 183 additions and 100 deletions

View file

@ -92,4 +92,15 @@ public class MockHand implements IHand {
public int getIdenticalStoneCount() {
return 0;
}
@Override
public boolean contains(Stone object) {
for (Pair<Stone, Position> stone : stones) {
if (stone.getFirst() == object) {
return true;
}
}
return false;
}
}

View file

@ -69,4 +69,15 @@ public class MockTable implements ITable {
return sets.size();
}
@Override
public boolean contains(StoneSet object) {
for (Pair<StoneSet, Position> set : sets) {
if (set.getFirst() == object) {
return true;
}
}
return false;
}
}