summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/RoundControl.java
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-31 00:58:50 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-31 00:58:50 +0200
commit2e24ee3e7fd7ebff1676218a56941415fa5ca61e (patch)
tree62240b66bf10a2fe934a88fc8fffcf132ce3d8c4 /src/jrummikub/control/RoundControl.java
parent489e7858e796a15ec1268de320525ba23bd75f5a (diff)
downloadJRummikub-2e24ee3e7fd7ebff1676218a56941415fa5ca61e.tar
JRummikub-2e24ee3e7fd7ebff1676218a56941415fa5ca61e.zip
Man kann im Model bestimmen, wie viele Steine gegeben werden. Test geht auch
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@335 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/RoundControl.java')
-rw-r--r--src/jrummikub/control/RoundControl.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java
index e04327f..124b196 100644
--- a/src/jrummikub/control/RoundControl.java
+++ b/src/jrummikub/control/RoundControl.java
@@ -136,11 +136,10 @@ public class RoundControl {
void deal() {
for (int i = 0; i < roundState.getPlayerCount(); i++) {
IHand hand = roundState.getNthNextPlayer(i).getHand();
- for (int j = 0; j < 7; j++) {
- hand.drop(roundState.getGameHeap().drawStone(), new Position(j,
+ for (int j = 0; j < roundState.getGameSettings()
+ .getNumberOfStonesDealt(); j++) {
+ hand.drop(roundState.getGameHeap().drawStone(), new Position(0,
0));
- hand.drop(roundState.getGameHeap().drawStone(), new Position(j,
- 1));
}
}
}