diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-07 00:23:00 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-06-07 00:23:00 +0200 |
commit | af3661fea084df6e089c2597dc4b311c77f39e4f (patch) | |
tree | 85984ed5b225dfe2d24f602d9074ad2228b7c05e /test/jrummikub/control/turn/BaseAIControlTest.java | |
parent | c59332950be525408da7b2e66687603a68cb560b (diff) | |
download | JRummikub-af3661fea084df6e089c2597dc4b311c77f39e4f.tar JRummikub-af3661fea084df6e089c2597dc4b311c77f39e4f.zip |
Always operate on cloned hands in the turn controls
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@380 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'test/jrummikub/control/turn/BaseAIControlTest.java')
-rw-r--r-- | test/jrummikub/control/turn/BaseAIControlTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/jrummikub/control/turn/BaseAIControlTest.java b/test/jrummikub/control/turn/BaseAIControlTest.java index 2c7b1fe..fe06398 100644 --- a/test/jrummikub/control/turn/BaseAIControlTest.java +++ b/test/jrummikub/control/turn/BaseAIControlTest.java @@ -75,7 +75,7 @@ public class BaseAIControlTest { */
@Test(timeout = 10000)
public void testTurnZeroRedealing() throws InterruptedException {
- aiControl.setup(gameSettings, player, table, view, TurnMode.MAY_REDEAL);
+ aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.MAY_REDEAL), gameSettings, view);
aiControl.startTurn();
while (!redealt) {
Thread.sleep(100);
@@ -89,7 +89,7 @@ public class BaseAIControlTest { */
@Test(timeout = 10000)
public void testTurnZeroNotMelding() throws InterruptedException {
- aiControl.setup(gameSettings, player, table, view, TurnMode.INSPECT_ONLY);
+ aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.INSPECT_ONLY), gameSettings, view);
aiControl.startTurn();
while (!turnEnded) {
Thread.sleep(100);
@@ -103,7 +103,7 @@ public class BaseAIControlTest { */
@Test(timeout = 10000)
public void testNormalTurnMelding() throws InterruptedException {
- aiControl.setup(gameSettings, player, table, view, TurnMode.NORMAL_TURN);
+ aiControl.setup(new ITurnControl.TurnInfo(table, player.getHand(), player.getLaidOut(), TurnMode.NORMAL_TURN), gameSettings, view);
aiControl.startTurn();
while (!turnEnded) {
Thread.sleep(100);
|