summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/StoneHeap.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/jrummikub/model/StoneHeap.java b/src/jrummikub/model/StoneHeap.java
index 12dcc21..241cbc7 100644
--- a/src/jrummikub/model/StoneHeap.java
+++ b/src/jrummikub/model/StoneHeap.java
@@ -15,8 +15,13 @@ import java.util.Random;
public class StoneHeap {
List<Stone> heap;
private Random generator = new Random();
-
- /** Creates 106 Stones according to standard rules */
+
+ /**
+ * Creates 106 Stones according to standard rules
+ *
+ * @param gameSettings
+ * (for number of sets/jokers, colors etc.)
+ * */
public StoneHeap(GameSettings gameSettings) {
heap = new ArrayList<Stone>();
for (int i = 1; i <= 13; i++) {
@@ -35,7 +40,7 @@ public class StoneHeap {
jokerColors.set(3, temp);
int jokersLeft = gameSettings.getJokerNumber();
- done : while(true) {
+ done: while (true) {
for (StoneColor c : jokerColors) {
if (jokersLeft == 0)
break done;