Package games.gofish.state

Examples of games.gofish.state.PlayerTurnState


   */
  public void testChangingState()
  {
    goFish.setState(new ComputerTurnSate());
    assertTrue(goFish.getState() instanceof ComputerTurnSate);
    goFish.setState(new PlayerTurnState());
    assertTrue(goFish.getState() instanceof PlayerTurnState);
  }
View Full Code Here


      goFish.getPlayer().getHand().removeCard(i);
      goFish.getComputer().getHand().removeCard(i);
    }
   
    //Test player
    goFish.setState(new PlayerTurnState());
    assertFalse(goFish.checkForMatch());
   
    //Test computer
    goFish.setState(new ComputerTurnSate());
    assertFalse(goFish.checkForMatch());
View Full Code Here

  {
    resetDeck();
    setId(3);
    player = new Player(new GoFishHand());
    computer = new Player(new GoFishHand());
    turnState = new PlayerTurnState();
    start();
  }
View Full Code Here

TOP

Related Classes of games.gofish.state.PlayerTurnState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.