summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control/RoundControl.java
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-10 00:34:43 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-10 00:34:43 +0200
commit8a3439f7369e4059cb49f65413028b57f8fc7daa (patch)
tree570dcaeabef172a3cb6293d5a6681e324050cb9a /src/jrummikub/control/RoundControl.java
parent3338af2d439019fedced4be5b105ce06129a3712 (diff)
downloadJRummikub-8a3439f7369e4059cb49f65413028b57f8fc7daa.tar
JRummikub-8a3439f7369e4059cb49f65413028b57f8fc7daa.zip
Ehhhhh... fix stone positions in the correct place.
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@204 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/RoundControl.java')
-rw-r--r--src/jrummikub/control/RoundControl.java11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java
index 154fcb9..f536acc 100644
--- a/src/jrummikub/control/RoundControl.java
+++ b/src/jrummikub/control/RoundControl.java
@@ -73,17 +73,14 @@ public class RoundControl {
for (int i = 0; i < gameState.getPlayerCount(); i++) {
IHand hand = gameState.getNthNextPlayer(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));
+ hand.drop(gameState.getGameHeap().drawStone(), new Position(j, 0));
+ hand.drop(gameState.getGameHeap().drawStone(), new Position(j, 1));
}
}
}
private void endOfTurn() {
- Set<Stone> tableDiff = tableDifference(gameState.getTable(),
- clonedTable);
+ Set<Stone> tableDiff = tableDifference(gameState.getTable(), clonedTable);
if (!tableDiff.isEmpty()) { // Player has made a move
if (clonedTable.isValid()) {
@@ -131,7 +128,7 @@ public class RoundControl {
.getActivePlayer()
.getHand()
.drop(gameState.getGameHeap().drawStone(),
- new Position(7 + (int) (Math.random() * 6), 0.5f));
+ new Position(HAND_WIDTH - 1, HAND_HEIGHT - 1));
}
private void dealPenalty(int count) {