Examples of GameOver


Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.PairsPlus);
    stateChanger.setChoice(state,0,move,10,0);
    move.setPlayerDecision(PlayerMove.Decision.Deal)
    int expectedBalance=990;
    GameOver.Result expectedLose=GameOver.Result.LOSE;
    GameOver gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedLose);
    assertEquals(gameover.getBalance(),expectedBalance);    
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.Ante);
    stateChanger.setChoice(state,1,move,0,10);
    move.setPlayerDecision(PlayerMove.Decision.Fold)
    int expectedBalance=990;
    GameOver.Result expectedLose=GameOver.Result.LOSE;
    GameOver gameover=stateChanger.makeMove(state,1,move);
    assertEquals(gameover.getResult(),expectedLose);
    assertEquals(gameover.getBalance(),expectedBalance);    
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.Ante);
    stateChanger.setChoice(state,0,move,0,10);
    move.setPlayerDecision(PlayerMove.Decision.Play)
    int expectedBalance=1020;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    GameOver gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance);  
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.PairsPlusAnte);
    stateChanger.setChoice(state,1,move,10,10);
    move.setPlayerDecision(PlayerMove.Decision.Fold)
    int expectedBalance=980;
    GameOver.Result expectedLose=GameOver.Result.LOSE;
    GameOver gameover=stateChanger.makeMove(state,1,move);
    assertEquals(gameover.getResult(),expectedLose);
    assertEquals(gameover.getBalance(),expectedBalance);    
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.PairsPlusAnte);
    stateChanger.setChoice(state,0,move,10,10);
    int expectedBalance=990;
    GameOver.Result expectedLose=GameOver.Result.LOSE;
    move.setPlayerDecision(PlayerMove.Decision.Deal);
    GameOver gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedLose);
    assertEquals(gameover.getBalance(),expectedBalance);
    state.setPlayerBalance(0,gameover.getBalance());
    expectedBalance=1010;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.Ante);
    stateChanger.setChoice(state,1,move,0,10);
    int expectedBalance=1050;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    GameOver gameover=stateChanger.makeMove(state,1,move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.Ante);
    stateChanger.setChoice(state,0,move,0,10);
    int expectedBalance=1060;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    GameOver gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.Ante);
    stateChanger.setChoice(state,0,move,0,10);
    int expectedBalance=1000;
    GameOver.Result expectedTie=GameOver.Result.TIE;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    GameOver gameover=stateChanger.makeMove(state,0,move);
    assertEquals(gameover.getResult(),expectedTie);
    assertEquals(gameover.getBalance(),expectedBalance);      
  }
View Full Code Here

Examples of com.poker.shared.GameOver

    move.setPlayerChoose(PlayerMove.Choose.PairsPlusAnte);
    stateChanger.setChoice(state,1,move,10,10);
    int expectedBalance=1010;
    GameOver.Result expectedWin=GameOver.Result.WIN;
    move.setPlayerDecision(PlayerMove.Decision.Deal);
    GameOver gameover=stateChanger.makeMove(state,1,move);
    assertEquals(gameover.getResult(),expectedWin);
    assertEquals(gameover.getBalance(),expectedBalance)
    state.setPlayerBalance(1,gameover.getBalance());
    expectedBalance=1010;
    GameOver.Result expectedTie=GameOver.Result.TIE;
    move.setPlayerDecision(PlayerMove.Decision.Play);
    gameover=stateChanger.makeMove(state,1,move);
    assertEquals(gameover.getResult(),expectedTie);
    assertEquals(gameover.getBalance(),expectedBalance);
  }
View Full Code Here

Examples of com.poker.shared.GameOver

     PlayerMove move=new PlayerMove();
       move.setPlayerChoose(PlayerMove.Choose.PairsPlus);
     stateChanger.setChoice(state,0,move,10,0);
     stateChanger.setChoice(state,1,move,10,0);
     move.setPlayerDecision(PlayerMove.Decision.Deal);
     GameOver gameResult1=stateChanger.makeMove(state,0,move);
     GameOver gameResult2=stateChanger.makeMove(state,1,move);
     state.setPlayerBalance(0,gameResult1.getBalance());
     state.setPlayerBalance(1,gameResult2.getBalance());
         presenter.setState(state);        
         Mockito.verify(view).showGameInfo(5);
         Mockito.verify(view).showBalance1(990);
         Mockito.verify(view).showBalance2(990);
         ArrayList<String> playerCardInfo=new ArrayList<String>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.