From 55b19cef1d4594c0e4fe185b446eb59ad5f6bc85 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 5 May 2011 23:29:07 +0200 Subject: Add stone dealing to RoundControl and fix some tests... again. git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@160 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/RoundControl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/jrummikub') diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index 00ebb6e..4949e2b 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -116,7 +116,11 @@ public class RoundControl { } private void dealStone() { - // gameState.getActivePlayer().getHand().drop(object, position) + gameState + .getActivePlayer() + .getHand() + .drop(gameState.getGameHeap().drawStone(), + new Position(7 + (int) (Math.random() * 6), 0.5f)); } private void dealPenalty(int count) { -- cgit v1.2.3