From 2e24ee3e7fd7ebff1676218a56941415fa5ca61e Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Tue, 31 May 2011 00:58:50 +0200 Subject: 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 --- src/jrummikub/control/RoundControl.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/jrummikub/control') 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)); } } } -- cgit v1.2.3