diff options
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r-- | src/jrummikub/control/RoundControl.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index ae834b9..ec08050 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -1,6 +1,9 @@ package jrummikub.control; import jrummikub.model.GameState; +import jrummikub.model.IHand; +import jrummikub.model.Player; +import jrummikub.model.Position; import jrummikub.view.IView; public class RoundControl { @@ -17,7 +20,15 @@ public class RoundControl { } void deal() { - + for (int i = 0; i < gameState.getPlayerCount(); i++) { + IHand hand = gameState.getPlayer(i).getHand(); + for (int j = 0; j < 7; j++) { + hand.drop(gameState.getGameHeap().drawStone(), new Position(j, + 0)); + hand.drop(gameState.getGameHeap().drawStone(), new Position(j, + 1)); + } + } } private void endOfTurn() { |