From 55088e15a11b285b112a3f87eaef15b1e3654147 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 30 May 2011 20:49:36 +0200 Subject: 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 --- src/jrummikub/model/StoneHeap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jrummikub/model/StoneHeap.java b/src/jrummikub/model/StoneHeap.java index 241cbc7..8199672 100644 --- a/src/jrummikub/model/StoneHeap.java +++ b/src/jrummikub/model/StoneHeap.java @@ -25,7 +25,7 @@ public class StoneHeap { public StoneHeap(GameSettings gameSettings) { heap = new ArrayList(); 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)); } -- cgit v1.2.3