summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-30 20:49:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-30 20:49:36 +0200
commit55088e15a11b285b112a3f87eaef15b1e3654147 (patch)
tree82ffd6bf3a4c73cca539a9294bcaccbdc8454900 /src/jrummikub/model
parent1660736239d9f437f0ffa336d3f3bb8ed7ae407f (diff)
downloadJRummikub-55088e15a11b285b112a3f87eaef15b1e3654147.tar
JRummikub-55088e15a11b285b112a3f87eaef15b1e3654147.zip
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
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/StoneHeap.java2
1 files changed, 1 insertions, 1 deletions
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<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));
}