Test different stone heap configurations with JUnit theories; allow creating stone heaps with different stone set numbers

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@329 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Matthias Schiffer 2011-05-30 20:49:36 +02:00
parent 1660736239
commit 55088e15a1
2 changed files with 81 additions and 34 deletions

View file

@ -25,7 +25,7 @@ public class StoneHeap {
public StoneHeap(GameSettings gameSettings) {
heap = new ArrayList<Stone>();
for (int i = 1; i <= 13; i++) {
for (int j = 0; j < 2; j++) {
for (int j = 0; j < gameSettings.getStoneSetNumber(); j++) {
for (StoneColor c : EnumSet.allOf(StoneColor.class)) {
heap.add(new Stone(i, c));
}